Users browsing this thread: 1 Guest(s)
Custom Song track looping problem

#1
Posts: 46
Threads: 31
Thanks Received: 0
Thanks Given: 0
Joined: May 2016
Reputation: 6
Status
None
Thanks to Gi Nattak's tutorial and Xenovant's Midi2mml app. I manage to create a custom song and place it over the normal battle theme. The song plays fine, but when it loops, one of the track, which normally starts playing at the middle of the song,doesn't loop properly and goes out of sync with the entire song by start playing early. 
How can i prevent a track from going out of sync?
Here is the mml data of the problematical track:

{ Ch 05 ===================================== }
l16%e1%k1v100p64$@0x24o5
r1^1^1^1^1^1^1^1^1^2^4
>e16g+16a16b16
<c4^8>a4e16r16a16r16<c16r16
>b4^8<c16r16d2
>a4<e4d16r16c16r16>b16r16<c16r16
>b4^8g16r16g2
<f4^16r16g4^16r16a4
c4^8^16r16f2
d16^32r8^32g2^4
c8>g8b8g8a8g8g8>g8
;
  Find
Quote  

#2
Posts: 2,548
Threads: 98
Thanks Received: 147
Thanks Given: 156
Joined: Aug 2009
Reputation: 52
Status
Nattak\'d
The $ command is where it will loop back to in the track, so if you want it to loop at a specific point you'll need to move that $ that's in the channel header to the exact spot you wish for it to loop back to. Sometimes you'll need to reset/re-add the correct octave when looping in the middle of a track because it will have a previous (incorrect) octave set from earlier, before it loops. Also, depending on how the midi was made you may need to add additional rests at the end of the track if it needs it before looping, to buffer/time it correctly with the other tracks.

Looping correctly is definitely one of the toughest things to get down when it comes to this stuff. I found a trick to make it much easier for these kind of looping circumstances - when editing the midi, I add in a note (a highest octave C so I can spot it easily) to the exact spot I want it to loop back to, and then when it's converted to MML data I remove that note and put the $ there. That way you don't have to do trial and error placing the $ at different spots or adding rests. I also use this technique to easily set the end point loop, at the end of a song, so everything lines up correctly, for those midis that keep playing and playing, or fade out.

So which song is it if I may ask?
Quote  

#3
Posts: 875
Threads: 44
Thanks Received: 22
Thanks Given: 17
Joined: Nov 2011
Reputation: 23
Status
Imprisoned
deleted one of your double posts for this thread please be more careful not to do this in future


The only limit is imagination. And 16 colors.. I guess 

Quote  



Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite