Added MIDI controllers 0x7b and 0x78 for disabling all sound (e.g. when

bypassing plugin).
pull/1/head
Holger Wirtz 8 years ago
parent 62613d02d3
commit d8fcf2d029
  1. 10
      src/dexed.cpp

@ -128,6 +128,7 @@ void Dexed::activate(void)
TRACE("Hi");
Plugin::activate();
panic();
controllers.values_[kControllerPitchRange] = data[155];
controllers.values_[kControllerPitchStep] = data[156];
@ -138,7 +139,6 @@ void Dexed::deactivate(void)
{
TRACE("Hi");
panic();
Plugin::deactivate();
TRACE("Bye");
@ -575,6 +575,14 @@ void Dexed::ProcessMidiMessage(const uint8_t *buf, uint32_t buf_size) {
}
}
break;
case 123:
TRACE("MIDI all-notes-off: %d %d",ctrl,value);
panic();
break;
case 120:
TRACE("MIDI all-sound-off: %d %d",ctrl,value);
panic();
break;
}
break;
}

Loading…
Cancel
Save