- }
-}
-
-void
-MIDIFunction::midi_sense_note_on (Parser &p, EventTwoBytes *tb)
-{
- midi_sense_note (p, tb, true);
-}
-
-void
-MIDIFunction::midi_sense_note_off (Parser &p, EventTwoBytes *tb)
-{
- midi_sense_note (p, tb, false);
-}
-
-void
-MIDIFunction::midi_sense_note (Parser &, EventTwoBytes *msg, bool /* is_on */)
-{
- if (msg->note_number == control_additional) {
- execute ();
- }
-}
-
-void
-MIDIFunction::midi_sense_controller (Parser &, EventTwoBytes *msg)
-{
- if (control_additional == msg->controller_number) {
- execute ();
- }
-}
-
-void
-MIDIFunction::midi_sense_program_change (Parser &, byte msg)
-{
- if (msg == control_additional) {
- execute ();
- }
-}
-
-void
-MIDIFunction::midi_sense_sysex (Parser &, byte* msg, size_t sz)
-{
- if (sz != sysex_size) {
- return;
- }
-
- if (memcmp (msg, sysex, sysex_size) != 0) {
- return;
- }
-
- execute ();
-}