public void onFileSelectChanged() { sequencer.Stop(); string fileName = Files[FileList.value].FullName; if (fileName != null) { sequence.LoadAsync(fileName); } }
/// <summary> /// Laod midi file /// </summary> /// <param name="fileName"></param> private void LoadAsyncMidiFile(string fileName) { try { if (fileName != "\\") { sequence.LoadAsync(fileName); } } catch (Exception) { throw new Exception("Load Midi File"); } }