|
|
@ -57,25 +57,31 @@ AudioAmplifier inverter; |
|
|
|
AudioEffectModulatedDelay modchorus_r; |
|
|
|
AudioEffectModulatedDelay modchorus_r; |
|
|
|
AudioEffectModulatedDelay modchorus_l; |
|
|
|
AudioEffectModulatedDelay modchorus_l; |
|
|
|
AudioSynthWaveform modulator; |
|
|
|
AudioSynthWaveform modulator; |
|
|
|
AudioFilterStateVariable modulator_filter; |
|
|
|
//AudioFilterStateVariable modulator_filter;
|
|
|
|
|
|
|
|
AudioFilterStateVariable chorus_filter_r; |
|
|
|
|
|
|
|
AudioFilterStateVariable chorus_filter_l; |
|
|
|
AudioConnection patchCord0(queue_r, peak_r); |
|
|
|
AudioConnection patchCord0(queue_r, peak_r); |
|
|
|
AudioConnection patchCord1(queue_l, peak_l); |
|
|
|
AudioConnection patchCord1(queue_l, peak_l); |
|
|
|
AudioConnection patchCord2(queue_r, freeverb_r); |
|
|
|
AudioConnection patchCord2(queue_r, freeverb_r); |
|
|
|
AudioConnection patchCord3(queue_l, freeverb_l); |
|
|
|
AudioConnection patchCord3(queue_l, freeverb_l); |
|
|
|
AudioConnection patchCord4(queue_r, 0, modchorus_r, 0); |
|
|
|
AudioConnection patchCord4(queue_r, 0, modchorus_r, 0); |
|
|
|
AudioConnection patchCord5(queue_l, 0, modchorus_l, 0); |
|
|
|
AudioConnection patchCord5(queue_l, 0, modchorus_l, 0); |
|
|
|
AudioConnection patchCord6(modulator, 0, modulator_filter, 1); |
|
|
|
//AudioConnection patchCord6(modulator, 0, modulator_filter, 1);
|
|
|
|
AudioConnection patchCord7(modulator_filter, 0, modchorus_r, 1); |
|
|
|
//AudioConnection patchCord7(modulator_filter, 0, modchorus_r, 1);
|
|
|
|
AudioConnection patchCord8(modulator_filter, 0, inverter, 0); |
|
|
|
//AudioConnection patchCord8(modulator_filter, 0, inverter, 0);
|
|
|
|
|
|
|
|
AudioConnection patchCord6(modulator, 0, modchorus_r, 1); |
|
|
|
|
|
|
|
AudioConnection patchCord7(modulator, 0, inverter, 0); |
|
|
|
AudioConnection patchCord9(inverter, 0, modchorus_l, 1); |
|
|
|
AudioConnection patchCord9(inverter, 0, modchorus_l, 1); |
|
|
|
AudioConnection patchCord10(queue_r, 0, mixer_r, 0); |
|
|
|
AudioConnection patchCord10(queue_r, 0, mixer_r, 0); |
|
|
|
AudioConnection patchCord11(queue_l, 0, mixer_l, 0); |
|
|
|
AudioConnection patchCord11(queue_l, 0, mixer_l, 0); |
|
|
|
AudioConnection patchCord12(modchorus_r, 0, mixer_r, 2); |
|
|
|
AudioConnection patchCord12(modchorus_r, chorus_filter_r); |
|
|
|
AudioConnection patchCord13(modchorus_l, 0, mixer_l, 2); |
|
|
|
AudioConnection patchCord13(modchorus_l, chorus_filter_l); |
|
|
|
AudioConnection patchCord18(freeverb_r, 0, mixer_r, 1); |
|
|
|
AudioConnection patchCord14(chorus_filter_r, 0, mixer_r, 2); |
|
|
|
AudioConnection patchCord19(freeverb_l, 0, mixer_l, 1); |
|
|
|
AudioConnection patchCord15(chorus_filter_l, 0, mixer_l, 2); |
|
|
|
AudioConnection patchCord20(mixer_r, volume_r); |
|
|
|
AudioConnection patchCord16(freeverb_r, 0, mixer_r, 1); |
|
|
|
AudioConnection patchCord21(mixer_l, volume_l); |
|
|
|
AudioConnection patchCord17(freeverb_l, 0, mixer_l, 1); |
|
|
|
|
|
|
|
AudioConnection patchCord18(mixer_r, volume_r); |
|
|
|
|
|
|
|
AudioConnection patchCord19(mixer_l, volume_l); |
|
|
|
#ifdef USB_AUDIO |
|
|
|
#ifdef USB_AUDIO |
|
|
|
AudioOutputUSB usb1; |
|
|
|
AudioOutputUSB usb1; |
|
|
|
AudioConnection patchCord22(volume_r, 0, usb1, 0); |
|
|
|
AudioConnection patchCord22(volume_r, 0, usb1, 0); |
|
|
@ -236,9 +242,15 @@ void setup() |
|
|
|
modulator.amplitude(1.0); |
|
|
|
modulator.amplitude(1.0); |
|
|
|
modulator.offset(0.0); |
|
|
|
modulator.offset(0.0); |
|
|
|
inverter.gain(-1.0); // change phase for second modulated delay (faked stereo mode)
|
|
|
|
inverter.gain(-1.0); // change phase for second modulated delay (faked stereo mode)
|
|
|
|
modulator_filter.frequency(50); |
|
|
|
//modulator_filter.frequency(15000);
|
|
|
|
modulator_filter.resonance(0.6); |
|
|
|
//modulator_filter.resonance(0.7);
|
|
|
|
modulator_filter.octaveControl(1); |
|
|
|
//modulator_filter.octaveControl(1);
|
|
|
|
|
|
|
|
chorus_filter_r.frequency(3500); |
|
|
|
|
|
|
|
chorus_filter_r.resonance(0.7); |
|
|
|
|
|
|
|
chorus_filter_r.octaveControl(2); |
|
|
|
|
|
|
|
chorus_filter_l.frequency(3500); |
|
|
|
|
|
|
|
chorus_filter_l.resonance(0.7); |
|
|
|
|
|
|
|
chorus_filter_l.octaveControl(2); |
|
|
|
modchorus_r.offset(15.0); |
|
|
|
modchorus_r.offset(15.0); |
|
|
|
modchorus_l.offset(15.0); |
|
|
|
modchorus_l.offset(15.0); |
|
|
|
|
|
|
|
|
|
|
|