|
if (dat.Contains(": ")) { |
|
try { |
|
SequenceCommand c = new SequenceCommand(); //THIS DOES NOT TAKE CARE OF JUMPS AS IT WILL JUMP TO THE MARKER TRACK. |
|
if (int.Parse(dat.Split(':')[0]) == trackNum) { |
|
c.FromString(dat.Substring(dat.IndexOf(":") + 2), labels, new Dictionary<string, int>()); |
|
commands.Add(c); |
|
} |
|
} catch { } |
Ideally, this feature would:
Random idea is to also support 'this command goes on every track' markers on track 0 with the ability to insert the current track number into the command somewhere. (this would essentially be a more powerful version of the commented out looping functionality)
GotaSequenceLib/SMF.cs
Lines 911 to 918 in c2c0510
Ideally, this feature would:
(referring to the comment, but i'm not really sure what it's talking about)I'm not sure what the comment is on about, because it already seems to work fine (though it might not work if the label is located after the jump instruction)cmp_eq 14, 10000; jump_if LS0)Random idea is to also support 'this command goes on every track' markers on track 0 with the ability to insert the current track number into the command somewhere. (this would essentially be a more powerful version of the commented out looping functionality)