Skip to content

Commit

Permalink
Fix order of initial vol command
Browse files Browse the repository at this point in the history
  • Loading branch information
Sierraffinity committed Sep 22, 2018
1 parent 25e469b commit f613176
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/mid2agb/agb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,6 @@ void PrintAgbTrack(std::vector<Event>& events)
{
std::fprintf(g_outputFile, "\n@**************** Track %u (Midi-Chn.%u) ****************@\n\n", g_agbTrack, g_midiChan + 1);
std::fprintf(g_outputFile, "%s_%u:\n", g_asmLabel.c_str(), g_agbTrack);
PrintWait(g_initialWait);
PrintByte("KEYSH , %s_key%+d", g_asmLabel.c_str(), 0);

int wholeNoteCount = 0;
int loopEndBlockNum = 0;
Expand All @@ -359,6 +357,9 @@ void PrintAgbTrack(std::vector<Event>& events)
if (!foundVolBeforeNote)
PrintByte("\tVOL , 127*%s_mvl/mxv", g_asmLabel.c_str());

PrintWait(g_initialWait);
PrintByte("KEYSH , %s_key%+d", g_asmLabel.c_str(), 0);

for (unsigned i = 0; events[i].type != EventType::EndOfTrack; i++)
{
const Event& event = events[i];
Expand Down

0 comments on commit f613176

Please sign in to comment.