/// <summary> /// Обработчик события отпускания клавиши. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MidiProcessor_NoteOff(object sender, MidiNoteEventArgs e) { VoicesManager.ReleaseNote(e.Note); }
/// <summary> /// Обработчик события нажатия на клавишу. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MidiProcessor_NoteOn(object sender, MidiNoteEventArgs e) { VoicesManager.PlayNote(e.Note); }