Beispiel #1
0
        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;
            }
        }