Using freeverb-stereo.

Fixing audio routing.
pull/3/head
Holger Wirtz 5 years ago
parent 95f5334a58
commit 0581978f70
  1. 33
      MicroDexed.ino

@ -42,8 +42,7 @@ AudioPlayQueue dexed1;
AudioAnalyzePeak peak1; AudioAnalyzePeak peak1;
AudioEffectDelay delay_r; AudioEffectDelay delay_r;
AudioEffectDelay delay_l; AudioEffectDelay delay_l;
AudioEffectFreeverb freeverb_r; AudioEffectFreeverbStereo freeverbs1;
AudioEffectFreeverb freeverb_l;
AudioEffectModulatedDelay modchorus_r; AudioEffectModulatedDelay modchorus_r;
AudioEffectModulatedDelay modchorus_l; AudioEffectModulatedDelay modchorus_l;
#if MOD_FILTER_OUTPUT != MOD_NO_FILTER_OUTPUT #if MOD_FILTER_OUTPUT != MOD_NO_FILTER_OUTPUT
@ -62,7 +61,9 @@ AudioMixer4 reverb_mixer_r;
AudioMixer4 reverb_mixer_l; AudioMixer4 reverb_mixer_l;
AudioAmplifier volume_r; AudioAmplifier volume_r;
AudioAmplifier volume_l; AudioAmplifier volume_l;
#ifdef MIDI_DEVICE_USB
AudioOutputUSB usb1; AudioOutputUSB usb1;
#endif
AudioConnection patchCord0(dexed1, peak1); AudioConnection patchCord0(dexed1, peak1);
AudioConnection patchCord1(dexed1, 0, chorus_mixer_r, 0); AudioConnection patchCord1(dexed1, 0, chorus_mixer_r, 0);
AudioConnection patchCord2(dexed1, 0, chorus_mixer_l, 0); AudioConnection patchCord2(dexed1, 0, chorus_mixer_l, 0);
@ -96,26 +97,30 @@ AudioConnection patchCord24(delay_r, 0, delay_mixer_r, 2);
AudioConnection patchCord25(delay_l, 0, delay_mixer_l, 2); AudioConnection patchCord25(delay_l, 0, delay_mixer_l, 2);
AudioConnection patchCord26(delay_fb_mixer_r, delay_r); AudioConnection patchCord26(delay_fb_mixer_r, delay_r);
AudioConnection patchCord27(delay_fb_mixer_l, delay_l); AudioConnection patchCord27(delay_fb_mixer_l, delay_l);
AudioConnection patchCord28(freeverb_r, 0, reverb_mixer_r, 1); AudioConnection patchCord28(delay_mixer_r, 0, freeverbs1, 1);
AudioConnection patchCord29(freeverb_l, 0, reverb_mixer_l, 1); AudioConnection patchCord29(delay_mixer_l, 0, freeverbs1, 1);
AudioConnection patchCord30(reverb_mixer_r, volume_r); AudioConnection patchCord30(freeverbs1, 0, reverb_mixer_r, 1);
AudioConnection patchCord31(reverb_mixer_l, volume_l); AudioConnection patchCord31(freeverbs1, 1, reverb_mixer_l, 1);
AudioConnection patchCord32(volume_r, 0, usb1, 0); AudioConnection patchCord32(reverb_mixer_r, volume_r);
AudioConnection patchCord33(volume_l, 0, usb1, 1); AudioConnection patchCord33(reverb_mixer_l, volume_l);
#ifdef MIDI_DEVICE_USB
AudioConnection patchCord34(volume_r, 0, usb1, 0);
AudioConnection patchCord35(volume_l, 0, usb1, 1);
#endif
#if defined(TEENSY_AUDIO_BOARD) #if defined(TEENSY_AUDIO_BOARD)
AudioOutputI2S i2s1; AudioOutputI2S i2s1;
AudioConnection patchCord34(volume_r, 0, i2s1, 0); AudioConnection patchCord36(volume_r, 0, i2s1, 0);
AudioConnection patchCord35(volume_l, 0, i2s1, 1); AudioConnection patchCord37(volume_l, 0, i2s1, 1);
AudioControlSGTL5000 sgtl5000_1; AudioControlSGTL5000 sgtl5000_1;
#elif defined(TGA_AUDIO_BOARD) #elif defined(TGA_AUDIO_BOARD)
AudioOutputI2S i2s1; AudioOutputI2S i2s1;
AudioConnection patchCord34(volume_r, 0, i2s1, 0); AudioConnection patchCord36(volume_r, 0, i2s1, 0);
AudioConnection patchCord35(volume_l, 0, i2s1, 1); AudioConnection patchCord37(volume_l, 0, i2s1, 1);
AudioControlWM8731master wm8731_1; AudioControlWM8731master wm8731_1;
#else #else
AudioOutputPT8211 pt8211_1; AudioOutputPT8211 pt8211_1;
AudioConnection patchCord34(volume_r, 0, pt8211_1, 0); AudioConnection patchCord36(volume_r, 0, pt8211_1, 0);
AudioConnection patchCord35(volume_l, 0, pt8211_1, 1); AudioConnection patchCord37(volume_l, 0, pt8211_1, 1);
#endif #endif
Dexed* dexed = new Dexed(SAMPLE_RATE); Dexed* dexed = new Dexed(SAMPLE_RATE);

Loading…
Cancel
Save