Handle VOLUME CC by instance

pull/19/head
dronus 5 years ago
parent e0971a823f
commit ea9675c8d1
  1. 6
      MicroDexed.ino

@ -614,12 +614,12 @@ void handleControlChange(byte inChannel, byte inCtrl, byte inValue)
configuration.dexed[instance_id].portamento_time = inValue;
MicroDexed[instance_id]->setPortamentoMode(configuration.dexed[instance_id].portamento_mode, configuration.dexed[instance_id].portamento_glissando, configuration.dexed[instance_id].portamento_time);
break;
case 7: // Volume
case 7: // Instance Volume
#ifdef DEBUG
Serial.println(F("VOLUME CC"));
#endif
configuration.vol = map(inValue, 0, 0x7f, VOLUME_MIN, VOLUME_MAX);
set_volume(configuration.vol, configuration.pan, configuration.mono);
configuration.dexed[instance_id].loudness = map(inValue, 0, 0x7f,LOUDNESS_MIN, LOUDNESS_MAX);
MicroDexed[instance_id]->fx.Gain = mapfloat(configuration.dexed[instance_id].loudness, LOUDNESS_MIN, LOUDNESS_MAX, 0.0, 1.0);
break;
case 10: // Pan
#ifdef DEBUG

Loading…
Cancel
Save