Beispiel #1
0
 static void parseTrackId(MidiTrackMetaData meta, string value)
 {
     int result;
     if (parseInt(value, 0, 15, out result)) {
         meta.mId = result;
     }
 }
Beispiel #2
0
 static void parseTrackType(MidiTrackMetaData meta, string value)
 {
     BmsTrackType result;
     if (Enum.TryParse(value, true, out result)) {
         meta.mType = result;
     }
 }
Beispiel #3
0
 static void parseTrackArg(MidiTrackMetaData meta, string value)
 {
     int result;
     if (parseInt(value, Int16.MinValue, Int16.MaxValue, out result)) {
         meta.mArg = (short)result;
     }
 }