Fix for MID controller handling.

pull/1/head
Holger Wirtz 8 years ago
parent d8fcf2d029
commit da0fabe3de
  1. 11
      src/dexed.cpp
  2. 1
      src/dexed.h
  3. 2
      src/dexed.mk

@ -581,7 +581,7 @@ void Dexed::ProcessMidiMessage(const uint8_t *buf, uint32_t buf_size) {
break;
case 120:
TRACE("MIDI all-sound-off: %d %d",ctrl,value);
panic();
all_sound_off();
break;
}
break;
@ -842,6 +842,15 @@ void Dexed::panic(void) {
}
}
void Dexed::all_sound_off(void) {
for(uint8_t i=0;i<MAX_ACTIVE_NOTES;i++) {
voices[i].dx7_note->init(data, 0, 0, feedback_bitdepth);
if ( voices[i].dx7_note != NULL ) {
voices[i].dx7_note->oscSync();
}
}
}
//==============================================================================
DexedVoice::DexedVoice(double rate) : m_key(lvtk::INVALID_KEY), m_rate(rate)

@ -96,6 +96,7 @@ class Dexed : public lvtk::Synth<DexedVoice, Dexed>
void keyup(uint8_t pitch);
void keydown(uint8_t pitch, uint8_t velo);
void panic(void);
void all_sound_off(void);
static const uint8_t MAX_ACTIVE_NOTES = 32;
uint8_t max_notes=MAX_ACTIVE_NOTES;

@ -5,7 +5,7 @@
######################################
DEXED_DEPENDENCIES = lvtk
DEXED_VERSION = dcbbb1ee7aa196b45efc8d1bd6c3fc3855a182f6
DEXED_VERSION = d8fcf2d029401bcebb2326a34d01b263dc555c48
DEXED_BUNDLES = dexed.lv2
DEXED_SITE = $(call github,dcoredump,dexed,$(DEXED_VERSION))
DEXED_TARGET_MAKE = $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) MOD=1

Loading…
Cancel
Save