Merge branch 'dev_volume_per_instance' of dronus/MicroDexed into dev

Thanks. A name change from "Loudness" to "Volume" for the instance is ok, but how caling the overall "sum" volume than?
pull/32/head
Holger Wirtz 5 years ago committed by Gitea
commit 5920f05e93
  1. 6
      MicroDexed.ino

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

Loading…
Cancel
Save