Fix for constrained values for EQ.

pull/109/head
Holger Wirtz 3 years ago
parent 5d9d16e182
commit 2c6ff3220a
  1. 18
      MicroDexed.ino

@ -96,13 +96,9 @@ AudioMixer<4> audio_thru_mixer_l;
#if NUM_DRUMS > 0 #if NUM_DRUMS > 0
//AudioPlayMemory* Drum[NUM_DRUMS]; //AudioPlayMemory* Drum[NUM_DRUMS];
AudioPlayArrayResmp* Drum[NUM_DRUMS]; AudioPlayArrayResmp* Drum[NUM_DRUMS];
#if NUM_DRUMS < 5 AudioMixer<NUM_DRUMS> drum_mixer_r;
AudioMixer<4> drum_mixer_r; AudioMixer<NUM_DRUMS> drum_mixer_l;
AudioMixer<4> drum_mixer_l;
#else
AudioMixer<8> drum_mixer_r;
AudioMixer<8> drum_mixer_l;
#endif
#ifdef USE_FX #ifdef USE_FX
#if NUM_DRUMS < 5 #if NUM_DRUMS < 5
AudioMixer<4> drum_reverb_send_mixer_r; AudioMixer<4> drum_reverb_send_mixer_r;
@ -1916,6 +1912,14 @@ void check_configuration_fx(void)
configuration.fx.delay_sync[instance_id] = constrain(configuration.fx.delay_sync[instance_id], DELAY_SYNC_MIN, DELAY_SYNC_MAX); configuration.fx.delay_sync[instance_id] = constrain(configuration.fx.delay_sync[instance_id], DELAY_SYNC_MIN, DELAY_SYNC_MAX);
configuration.fx.reverb_send[instance_id] = constrain(configuration.fx.reverb_send[instance_id], REVERB_SEND_MIN, REVERB_SEND_MAX); configuration.fx.reverb_send[instance_id] = constrain(configuration.fx.reverb_send[instance_id], REVERB_SEND_MIN, REVERB_SEND_MAX);
} }
configuration.fx.eq_1 = constrain(configuration.fx.eq_1, EQ_1_MIN, EQ_1_MAX);
configuration.fx.eq_2 = constrain(configuration.fx.eq_2, EQ_2_MIN, EQ_2_MAX);
configuration.fx.eq_3 = constrain(configuration.fx.eq_3, EQ_3_MIN, EQ_3_MAX);
configuration.fx.eq_4 = constrain(configuration.fx.eq_4, EQ_4_MIN, EQ_4_MAX);
configuration.fx.eq_5 = constrain(configuration.fx.eq_5, EQ_5_MIN, EQ_5_MAX);
configuration.fx.eq_6 = constrain(configuration.fx.eq_6, EQ_6_MIN, EQ_6_MAX);
configuration.fx.eq_7 = constrain(configuration.fx.eq_7, EQ_7_MIN, EQ_7_MAX);
} }
void check_configuration_performance(void) void check_configuration_performance(void)

Loading…
Cancel
Save