Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
 /// <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);
 }