|
|
|
@ -54,6 +54,8 @@ AudioMixer4 mixer_l; |
|
|
|
|
AudioAmplifier volume_r; |
|
|
|
|
AudioAmplifier volume_l; |
|
|
|
|
AudioAmplifier inverter; |
|
|
|
|
AudioMixer4 modchorus_fbk_mixer_r; |
|
|
|
|
AudioMixer4 modchorus_fbk_mixer_l; |
|
|
|
|
AudioEffectModulatedDelay modchorus_r; |
|
|
|
|
AudioEffectModulatedDelay modchorus_l; |
|
|
|
|
AudioSynthWaveform modulator; |
|
|
|
@ -61,13 +63,17 @@ AudioConnection patchCord0(queue_r, peak_r); |
|
|
|
|
AudioConnection patchCord1(queue_l, peak_l); |
|
|
|
|
AudioConnection patchCord2(queue_r, freeverb_r); |
|
|
|
|
AudioConnection patchCord3(queue_l, freeverb_l); |
|
|
|
|
AudioConnection patchCord4(queue_r, 0, modchorus_r, 0); |
|
|
|
|
AudioConnection patchCord5(queue_l, 0, modchorus_l, 0); |
|
|
|
|
AudioConnection patchCord8(modulator, 0, modchorus_r, 1); |
|
|
|
|
AudioConnection patchCord9(modulator, inverter); |
|
|
|
|
AudioConnection patchCord10(inverter, 0, modchorus_l, 1); |
|
|
|
|
AudioConnection patchCord11(queue_r, 0, mixer_r, 0); |
|
|
|
|
AudioConnection patchCord12(queue_l, 0, mixer_l, 0); |
|
|
|
|
AudioConnection patchCord4(queue_r, 0, modchorus_fbk_mixer_r, 0); |
|
|
|
|
AudioConnection patchCord5(queue_l, 0, modchorus_fbk_mixer_l, 0); |
|
|
|
|
AudioConnection patchCord6(modchorus_fbk_mixer_r, 0, modchorus_r, 0); |
|
|
|
|
AudioConnection patchCord7(modchorus_fbk_mixer_l, 0, modchorus_l, 0); |
|
|
|
|
AudioConnection patchCord8(modchorus_r, 0, modchorus_r, 1); |
|
|
|
|
AudioConnection patchCord9(modchorus_l, 0, modchorus_l, 1); |
|
|
|
|
AudioConnection patchCord10(modulator, 0, modchorus_r, 1); |
|
|
|
|
AudioConnection patchCord11(modulator, inverter); |
|
|
|
|
AudioConnection patchCord12(inverter, 0, modchorus_l, 1); |
|
|
|
|
AudioConnection patchCord13(queue_r, 0, mixer_r, 0); |
|
|
|
|
AudioConnection patchCord14(queue_l, 0, mixer_l, 0); |
|
|
|
|
AudioConnection patchCord15(modchorus_r, 0, mixer_r, 2); |
|
|
|
|
AudioConnection patchCord16(modchorus_l, 0, mixer_l, 2); |
|
|
|
|
AudioConnection patchCord17(freeverb_r, 0, mixer_r, 1); |
|
|
|
@ -235,11 +241,19 @@ void setup() |
|
|
|
|
modulator.phase(0); |
|
|
|
|
modulator.amplitude(1.0); |
|
|
|
|
modulator.offset(0.0); |
|
|
|
|
#ifdef MOD_STEREO |
|
|
|
|
inverter.gain(-1.0); // change phase for second modulated delay (faked stereo mode)
|
|
|
|
|
#else |
|
|
|
|
inverter.gain(1.0); |
|
|
|
|
#endif |
|
|
|
|
modchorus_r.offset(15.0); |
|
|
|
|
modchorus_l.offset(15.0); |
|
|
|
|
modchorus_r.feedback(0.25); |
|
|
|
|
modchorus_l.feedback(0.25); |
|
|
|
|
//modchorus_r.feedback(0.25);
|
|
|
|
|
//modchorus_l.feedback(0.25);
|
|
|
|
|
modchorus_fbk_mixer_r.gain(0, 0.75); |
|
|
|
|
modchorus_fbk_mixer_l.gain(0, 0.75); |
|
|
|
|
modchorus_fbk_mixer_r.gain(1, 0.25); |
|
|
|
|
modchorus_fbk_mixer_l.gain(1, 0.25); |
|
|
|
|
|
|
|
|
|
// internal mixing of original signal(0), reverb(1) and chorus(2)
|
|
|
|
|
mixer_r.gain(VOL_MAIN, 0.5); |
|
|
|
|