/// <summary> /// Convert the file to an MIDI. /// </summary> /// <param name="filePath">Path to save the MIDI.</param> public void SaveMIDI(string filePath) { ReadCommandData(); Sanford.Multimedia.Midi.Sequence s = SMF.FromSequenceCommands(Commands, 0); s.Save(filePath); }
/// <summary> /// Convert the file to an MIDI. /// </summary> /// <param name="filePath">Path to save the MIDI.</param> /// <param name="trackMask">Track mask.</param> public void SaveMIDI(string filePath, ushort trackMask = 0xFFFF) { ReadCommandData(); Sanford.Multimedia.Midi.Sequence s = SMF.FromSequenceCommands(Commands, 0, trackMask); s.Save(filePath); }