|
|
@ -56,15 +56,15 @@ AudioAmplifier volume_r; |
|
|
|
AudioAmplifier volume_l; |
|
|
|
AudioAmplifier volume_l; |
|
|
|
AudioModulatedEffectChorus modchorus_r; |
|
|
|
AudioModulatedEffectChorus modchorus_r; |
|
|
|
AudioModulatedEffectChorus modchorus_l; |
|
|
|
AudioModulatedEffectChorus modchorus_l; |
|
|
|
AudioSynthWaveformSine mod_sine1; |
|
|
|
AudioSynthWaveform modulator; |
|
|
|
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(mod_sine1, 0, modchorus_r, 1); |
|
|
|
AudioConnection patchCord6(modulator, 0, modchorus_r, 1); |
|
|
|
AudioConnection patchCord7(mod_sine1, 0, modchorus_l, 1); |
|
|
|
AudioConnection patchCord7(modulator, 0, modchorus_l, 1); |
|
|
|
AudioConnection patchCord8(queue_r, 0, mixer_r, 0); |
|
|
|
AudioConnection patchCord8(queue_r, 0, mixer_r, 0); |
|
|
|
AudioConnection patchCord9(queue_l, 0, mixer_l, 0); |
|
|
|
AudioConnection patchCord9(queue_l, 0, mixer_l, 0); |
|
|
|
AudioConnection patchCord10(modchorus_r, 0, mixer_r, 2); |
|
|
|
AudioConnection patchCord10(modchorus_r, 0, mixer_r, 2); |
|
|
@ -241,12 +241,13 @@ void setup() |
|
|
|
// chorus modulation fixed
|
|
|
|
// chorus modulation fixed
|
|
|
|
memset(r_delayline, 0, sizeof(short)*CHORUS_DELAY_LENGTH); |
|
|
|
memset(r_delayline, 0, sizeof(short)*CHORUS_DELAY_LENGTH); |
|
|
|
memset(l_delayline, 0, sizeof(short)*CHORUS_DELAY_LENGTH); |
|
|
|
memset(l_delayline, 0, sizeof(short)*CHORUS_DELAY_LENGTH); |
|
|
|
mod_sine1.amplitude(1.0); |
|
|
|
modulator.begin(WAVEFORM_TRIANGLE); |
|
|
|
mod_sine1.frequency(2.0); |
|
|
|
modulator.amplitude(0.1); |
|
|
|
mod_sine1.phase(0); |
|
|
|
modulator.frequency(1.0); |
|
|
|
|
|
|
|
modulator.phase(0); |
|
|
|
// chorus level fixed
|
|
|
|
// chorus level fixed
|
|
|
|
mixer_r.gain(2, 1.0); |
|
|
|
mixer_r.gain(2, 0.5); |
|
|
|
mixer_l.gain(2, 1.0); |
|
|
|
mixer_l.gain(2, 0.5); |
|
|
|
|
|
|
|
|
|
|
|
AudioInterrupts(); |
|
|
|
AudioInterrupts(); |
|
|
|
|
|
|
|
|
|
|
|