private void P_EventPlayed(object sender, MidiEventPlayedEventArgs e) { switch (e.Event) { case NoteOnEvent keyon: KeyboardUtilities.NoteOn(keyon); break; case NoteOffEvent keyoff: KeyboardUtilities.NoteOff(keyoff); break; } }
private void P_EventPlayed(object sender, MidiEventPlayedEventArgs e) { switch (e.Event) { case NoteOnEvent keyon: KeyboardUtilities.NoteOn(keyon); break; case NoteOffEvent keyoff: KeyboardUtilities.NoteOff(keyoff); break; } }