summaryrefslogtreecommitdiff
path: root/tools/mid2agb/agb.cpp
diff options
context:
space:
mode:
authorDiegoisawesome <Diegoisawesome@users.noreply.github.com>2018-09-22 14:20:33 -0500
committerGitHub <noreply@github.com>2018-09-22 14:20:33 -0500
commit925de13b448a650da5e725684f6f6ea9826966d6 (patch)
tree1480f537fc53b8625654b813f8a175a8f3f72857 /tools/mid2agb/agb.cpp
parenteb4408a6ff7a515d60e76ee958a88984b9b50407 (diff)
parentf6131763085175cfbe027089e96afa840e774ea1 (diff)
Merge pull request #334 from Diegoisawesome/master
Change order of inital vol command in mid2agb
Diffstat (limited to 'tools/mid2agb/agb.cpp')
-rw-r--r--tools/mid2agb/agb.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/mid2agb/agb.cpp b/tools/mid2agb/agb.cpp
index 9ff1efa86..5023455ca 100644
--- a/tools/mid2agb/agb.cpp
+++ b/tools/mid2agb/agb.cpp
@@ -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;
@@ -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];