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!"); } }
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(); }