|
|
@ -76,9 +76,11 @@ AudioConnection patchCord14(freeverb_r, 0, mixer_r, 1); |
|
|
|
AudioConnection patchCord15(freeverb_l, 0, mixer_l, 1); |
|
|
|
AudioConnection patchCord15(freeverb_l, 0, mixer_l, 1); |
|
|
|
AudioConnection patchCord16(mixer_r, volume_r); |
|
|
|
AudioConnection patchCord16(mixer_r, volume_r); |
|
|
|
AudioConnection patchCord17(mixer_l, volume_l); |
|
|
|
AudioConnection patchCord17(mixer_l, volume_l); |
|
|
|
|
|
|
|
#ifdef USB_AUDIO |
|
|
|
AudioOutputUSB usb1; |
|
|
|
AudioOutputUSB usb1; |
|
|
|
AudioConnection patchCord18(volume_r, 0, usb1, 0); |
|
|
|
AudioConnection patchCord18(volume_r, 0, usb1, 0); |
|
|
|
AudioConnection patchCord19(volume_l, 0, usb1, 1); |
|
|
|
AudioConnection patchCord19(volume_l, 0, usb1, 1); |
|
|
|
|
|
|
|
#endif |
|
|
|
AudioOutputI2S i2s1; |
|
|
|
AudioOutputI2S i2s1; |
|
|
|
AudioConnection patchCord20(volume_r, 0, i2s1, 0); |
|
|
|
AudioConnection patchCord20(volume_r, 0, i2s1, 0); |
|
|
|
AudioConnection patchCord21(volume_l, 0, i2s1, 1); |
|
|
|
AudioConnection patchCord21(volume_l, 0, i2s1, 1); |
|
|
@ -229,11 +231,11 @@ void setup() |
|
|
|
modulator.phase(0); |
|
|
|
modulator.phase(0); |
|
|
|
modulator.offset(0.0); |
|
|
|
modulator.offset(0.0); |
|
|
|
modulator_filter.setLowpass(0, CHORUS_MODULATOR_FILTER_FRQ, CHORUS_MODULATOR_FILTER_Q); |
|
|
|
modulator_filter.setLowpass(0, CHORUS_MODULATOR_FILTER_FRQ, CHORUS_MODULATOR_FILTER_Q); |
|
|
|
inverter.gain(-1.0); // change phase for second moduleated delay
|
|
|
|
inverter.gain(-1.0); // change phase for second modulated delay (faked stereo mode)
|
|
|
|
|
|
|
|
|
|
|
|
// internal mixing of original signal(0), reverb(1) and chorus(2)
|
|
|
|
// internal mixing of original signal(0), reverb(1) and chorus(2)
|
|
|
|
mixer_r.gain(VOL_MAIN, 0.4); |
|
|
|
mixer_r.gain(VOL_MAIN, 0.5); |
|
|
|
mixer_l.gain(VOL_MAIN, 0.4); |
|
|
|
mixer_l.gain(VOL_MAIN, 0.5); |
|
|
|
mixer_r.gain(VOL_REVERB, 0.2); |
|
|
|
mixer_r.gain(VOL_REVERB, 0.2); |
|
|
|
mixer_l.gain(VOL_REVERB, 0.2); |
|
|
|
mixer_l.gain(VOL_REVERB, 0.2); |
|
|
|
mixer_r.gain(VOL_CHORUS, 0.2); |
|
|
|
mixer_r.gain(VOL_CHORUS, 0.2); |
|
|
|