Esempio n. 1
0
 void SetMidiFile(string Filename)
 {
     if (System.IO.File.Exists(Filename))
     {
         FMidiScore = new TMidiScore();
         FMidiScore.OnNotesParsed += NotesParsed;
         FMidiScore.SetFilename(Filename);
         FilenameLabel.Text = System.IO.Path.GetFileName(Filename);
     }
     else
     {
         FHost.Log(TLogType.Warning, " \"" + Filename + "\" does not exist!");
     }
 }
Esempio n. 2
0
        public override void DestroyPins()
        {
            // DELETE ALL PINS
            ///////////////////////
            ///

            FHost.DeletePin(FFilenameIn);
            FFilenameIn = null;

            FHost.DeletePin(FChannelOut);
            FChannelOut = null;

            FHost.DeletePin(FVelocityOut);
            FVelocityOut = null;

            //delete midiscore
            FMidiScore = null;

            base.DestroyPins();
        }