|
|
|
@ -56,8 +56,9 @@ AudioAmplifier volume_l; |
|
|
|
|
AudioAmplifier inverter; |
|
|
|
|
AudioEffectModulatedDelay modchorus_r; |
|
|
|
|
AudioEffectModulatedDelay modchorus_l; |
|
|
|
|
AudioSynthWaveform modulator; |
|
|
|
|
//AudioFilterStateVariable modulator_filter;
|
|
|
|
|
AudioSynthWaveform modulator1; |
|
|
|
|
AudioSynthWaveform modulator2; |
|
|
|
|
AudioMixer4 modulator_mixer; |
|
|
|
|
AudioFilterStateVariable chorus_filter_r; |
|
|
|
|
AudioFilterStateVariable chorus_filter_l; |
|
|
|
|
AudioConnection patchCord0(queue_r, peak_r); |
|
|
|
@ -66,30 +67,29 @@ 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 patchCord6(modulator, 0, modulator_filter, 1);
|
|
|
|
|
//AudioConnection patchCord7(modulator_filter, 0, modchorus_r, 1);
|
|
|
|
|
//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 patchCord10(queue_r, 0, mixer_r, 0); |
|
|
|
|
AudioConnection patchCord11(queue_l, 0, mixer_l, 0); |
|
|
|
|
AudioConnection patchCord12(modchorus_r, chorus_filter_r); |
|
|
|
|
AudioConnection patchCord13(modchorus_l, chorus_filter_l); |
|
|
|
|
AudioConnection patchCord14(chorus_filter_r, 0, mixer_r, 2); |
|
|
|
|
AudioConnection patchCord15(chorus_filter_l, 0, mixer_l, 2); |
|
|
|
|
AudioConnection patchCord16(freeverb_r, 0, mixer_r, 1); |
|
|
|
|
AudioConnection patchCord17(freeverb_l, 0, mixer_l, 1); |
|
|
|
|
AudioConnection patchCord18(mixer_r, volume_r); |
|
|
|
|
AudioConnection patchCord19(mixer_l, volume_l); |
|
|
|
|
AudioConnection patchCord6(modulator1, 0, modulator_mixer, 0); |
|
|
|
|
AudioConnection patchCord7(modulator2, 0, modulator_mixer, 1); |
|
|
|
|
AudioConnection patchCord8(modulator_mixer, 0, modchorus_r, 1); |
|
|
|
|
AudioConnection patchCord9(modulator_mixer, 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 patchCord13(modchorus_r, chorus_filter_r); |
|
|
|
|
AudioConnection patchCord14(modchorus_l, chorus_filter_l); |
|
|
|
|
AudioConnection patchCord15(chorus_filter_r, 0, mixer_r, 2); |
|
|
|
|
AudioConnection patchCord16(chorus_filter_l, 0, mixer_l, 2); |
|
|
|
|
AudioConnection patchCord17(freeverb_r, 0, mixer_r, 1); |
|
|
|
|
AudioConnection patchCord18(freeverb_l, 0, mixer_l, 1); |
|
|
|
|
AudioConnection patchCord19(mixer_r, volume_r); |
|
|
|
|
AudioConnection patchCord20(mixer_l, volume_l); |
|
|
|
|
#ifdef USB_AUDIO |
|
|
|
|
AudioOutputUSB usb1; |
|
|
|
|
AudioConnection patchCord22(volume_r, 0, usb1, 0); |
|
|
|
|
AudioConnection patchCord23(volume_l, 0, usb1, 1); |
|
|
|
|
AudioConnection patchCord21(volume_r, 0, usb1, 0); |
|
|
|
|
AudioConnection patchCord22(volume_l, 0, usb1, 1); |
|
|
|
|
#endif |
|
|
|
|
AudioOutputI2S i2s1; |
|
|
|
|
AudioConnection patchCord24(volume_r, 0, i2s1, 0); |
|
|
|
|
AudioConnection patchCord25(volume_l, 0, i2s1, 1); |
|
|
|
|
AudioConnection patchCord23(volume_r, 0, i2s1, 0); |
|
|
|
|
AudioConnection patchCord24(volume_l, 0, i2s1, 1); |
|
|
|
|
AudioControlSGTL5000 sgtl5000_1; |
|
|
|
|
|
|
|
|
|
// Objects
|
|
|
|
@ -237,11 +237,17 @@ void setup() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// chorus modulation fixed
|
|
|
|
|
modulator.begin(CHORUS_WAVEFORM); |
|
|
|
|
modulator.phase(0); |
|
|
|
|
modulator.amplitude(1.0); |
|
|
|
|
modulator.offset(0.0); |
|
|
|
|
inverter.gain(-1.0); // change phase for second modulated delay (faked stereo mode)
|
|
|
|
|
modulator1.begin(CHORUS_WAVEFORM_MOD1); |
|
|
|
|
modulator1.phase(0); |
|
|
|
|
modulator1.amplitude(1.0); |
|
|
|
|
modulator1.offset(0.0); |
|
|
|
|
modulator2.begin(CHORUS_WAVEFORM_MOD2); |
|
|
|
|
modulator2.phase(0); |
|
|
|
|
modulator2.amplitude(1.0); |
|
|
|
|
modulator2.offset(0.0); |
|
|
|
|
modulator_mixer.gain(0, 0.5); |
|
|
|
|
modulator_mixer.gain(1, 0.5); |
|
|
|
|
inverter.gain(1.0); // change phase for second modulated delay (faked stereo mode)
|
|
|
|
|
//modulator_filter.frequency(15000);
|
|
|
|
|
//modulator_filter.resonance(0.7);
|
|
|
|
|
//modulator_filter.octaveControl(1);
|
|
|
|
|