diff --git a/MicroDexed.ino b/MicroDexed.ino index 6fcdf77..07f5acb 100644 --- a/MicroDexed.ino +++ b/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