@ -58,6 +58,8 @@ AudioEffectModulatedDelay modchorus_r;
AudioEffectModulatedDelay modchorus_l ;
AudioSynthWaveform modulator ;
AudioFilterBiquad modulator_filter ;
AudioFilterBiquad chorus_filter_r ;
AudioFilterBiquad chorus_filter_l ;
AudioConnection patchCord0 ( queue_r , peak_r ) ;
AudioConnection patchCord1 ( queue_l , peak_l ) ;
AudioConnection patchCord2 ( queue_r , freeverb_r ) ;
@ -70,20 +72,24 @@ AudioConnection patchCord8(modulator_filter, inverter);
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 , 0 , mixer_r , 2 ) ;
AudioConnection patchCord13 ( modchorus_l , 0 , mixer_l , 2 ) ;
AudioConnection patchCord14 ( freeverb_r , 0 , mixer_r , 1 ) ;
AudioConnection patchCord15 ( freeverb_l , 0 , mixer_l , 1 ) ;
AudioConnection patchCord16 ( mixer_r , volume_r ) ;
AudioConnection patchCord17 ( mixer_l , volume_l ) ;
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 ( modchorus_r , 0 , mixer_r , 2 ) ;
AudioConnection patchCord17 ( modchorus_l , 0 , mixer_l , 2 ) ;
AudioConnection patchCord18 ( freeverb_r , 0 , mixer_r , 1 ) ;
AudioConnection patchCord19 ( freeverb_l , 0 , mixer_l , 1 ) ;
AudioConnection patchCord20 ( mixer_r , volume_r ) ;
AudioConnection patchCord21 ( mixer_l , volume_l ) ;
# ifdef USB_AUDIO
AudioOutputUSB usb1 ;
AudioConnection patchCord18 ( volume_r , 0 , usb1 , 0 ) ;
AudioConnection patchCord19 ( volume_l , 0 , usb1 , 1 ) ;
AudioConnection patchCord22 ( volume_r , 0 , usb1 , 0 ) ;
AudioConnection patchCord23 ( volume_l , 0 , usb1 , 1 ) ;
# endif
AudioOutputI2S i2s1 ;
AudioConnection patchCord20 ( volume_r , 0 , i2s1 , 0 ) ;
AudioConnection patchCord21 ( volume_l , 0 , i2s1 , 1 ) ;
AudioConnection patchCord24 ( volume_r , 0 , i2s1 , 0 ) ;
AudioConnection patchCord25 ( volume_l , 0 , i2s1 , 1 ) ;
AudioControlSGTL5000 sgtl5000_1 ;
// Objects
@ -238,8 +244,10 @@ void setup()
inverter . gain ( - 1.0 ) ; // change phase for second modulated delay (faked stereo mode)
modchorus_r . offset ( 15.0 ) ;
modchorus_r . intensity ( 1.0 ) ;
chorus_filter_r . setLowpass ( 0 , 10000.0 , CHORUS_MODULATOR_FILTER_Q ) ;
modchorus_l . offset ( 15.0 ) ;
modchorus_l . intensity ( 1.0 ) ;
chorus_filter_l . setLowpass ( 0 , 10000.0 , CHORUS_MODULATOR_FILTER_Q ) ;
// internal mixing of original signal(0), reverb(1) and chorus(2)
mixer_r . gain ( VOL_MAIN , 0.5 ) ;