Example #1
0
    public void onFileSelectChanged()
    {
        sequencer.Stop();

        string fileName = Files[FileList.value].FullName;

        if (fileName != null)
        {
            sequence.LoadAsync(fileName);
        }
    }
Example #2
0
 /// <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");
     }
 }