diff --git a/UI.cpp b/UI.cpp index 9c878f2..7fa8218 100644 --- a/UI.cpp +++ b/UI.cpp @@ -371,9 +371,11 @@ void handle_ui(void) else if (enc[i].read() > ENC_DELAY_VOLUME_STEPS) enc[i].write(ENC_DELAY_VOLUME_STEPS); effect_delay_volume = enc[i].read(); - mixer2.gain(0, 1.0-mapfloat(effect_delay_volume, 0, ENC_DELAY_VOLUME_STEPS, 0.0, 1.0)); // delay tap1 signal (with added feedback) - mixer2.gain(1, mapfloat(effect_delay_volume, 0, ENC_DELAY_VOLUME_STEPS, 0.0, 1.0)); // delay tap1 signal (with added feedback) - mixer2.gain(2, mapfloat(effect_delay_volume, 0, ENC_DELAY_VOLUME_STEPS, 0.0, 1.0)); // delay tap1 signal (with added feedback) + float tmp_vol = mapfloat(effect_delay_volume, 0, ENC_DELAY_VOLUME_STEPS, 0.0, 1.0); + //mixer2.gain(0, 1.0 - mapfloat(effect_delay_volume, 0, ENC_DELAY_VOLUME_STEPS, 0.0, 1.0)); // delay tap1 signal (with added feedback) + mixer2.gain(0, 1.0 - tmp_vol); // delay tap1 signal (with added feedback) + mixer2.gain(1, tmp_vol); // delay tap1 signal (with added feedback) + mixer2.gain(2, tmp_vol); // delay tap1 signal #ifdef DEBUG Serial.print(F("Setting delay volume to: ")); Serial.println(effect_delay_volume); diff --git a/config.h b/config.h index dd2d6db..12923fe 100644 --- a/config.h +++ b/config.h @@ -36,7 +36,7 @@ #define MIDI_DEVICE Serial1 #define USE_ONBOARD_USB_HOST 1 #define MIDI_MERGE_THRU 1 -//#define TEENSY_AUDIO_BOARD 1 +#define TEENSY_AUDIO_BOARD 1 #define VOLUME 0.6 #define DEFAULT_MIDI_CHANNEL MIDI_CHANNEL_OMNI #define DEFAULT_SYSEXBANK 0