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