|
|
@ -64,83 +64,82 @@ AudioSynthWaveform* chorus_modulator[NUM_DEXED]; |
|
|
|
AudioFilterBiquad* modchorus_filter[NUM_DEXED]; |
|
|
|
AudioFilterBiquad* modchorus_filter[NUM_DEXED]; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
AudioEffectModulatedDelay* modchorus[NUM_DEXED]; |
|
|
|
AudioEffectModulatedDelay* modchorus[NUM_DEXED]; |
|
|
|
AudioMixer<4>* chorus_mixer[NUM_DEXED]; |
|
|
|
AudioMixer<4>* chorus_mixer[NUM_DEXED]; |
|
|
|
AudioMixer<4>* delay_fb_mixer[NUM_DEXED]; |
|
|
|
AudioMixer<4>* delay_fb_mixer[NUM_DEXED]; |
|
|
|
AudioEffectDelay* delay_fx[NUM_DEXED]; |
|
|
|
AudioEffectDelay* delay_fx[NUM_DEXED]; |
|
|
|
AudioMixer<4>* delay_mixer[NUM_DEXED]; |
|
|
|
AudioMixer<4>* delay_mixer[NUM_DEXED]; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
AudioEffectMonoStereo* mono2stereo[NUM_DEXED]; |
|
|
|
AudioEffectMonoStereo* mono2stereo[NUM_DEXED]; |
|
|
|
|
|
|
|
|
|
|
|
AudioMixer<4> microdexed_peak_mixer; |
|
|
|
AudioMixer<4> microdexed_peak_mixer; |
|
|
|
AudioAnalyzePeak microdexed_peak; |
|
|
|
AudioAnalyzePeak microdexed_peak; |
|
|
|
#if defined(USE_FX) |
|
|
|
#if defined(USE_FX) |
|
|
|
AudioMixer<4> reverb_mixer_r; |
|
|
|
AudioMixer<4> reverb_mixer_r; |
|
|
|
AudioMixer<4> reverb_mixer_l; |
|
|
|
AudioMixer<4> reverb_mixer_l; |
|
|
|
#if defined(USE_PLATEREVERB) |
|
|
|
#if defined(USE_PLATEREVERB) |
|
|
|
AudioEffectPlateReverb reverb; |
|
|
|
AudioEffectPlateReverb reverb; |
|
|
|
#elif defined(USE_FREEVERB_SIMD) |
|
|
|
#elif defined(USE_FREEVERB_SIMD) |
|
|
|
AudioEffectFreeverbSIMDStereo freeverb; |
|
|
|
AudioEffectFreeverbSIMDStereo freeverb; |
|
|
|
#else |
|
|
|
#else |
|
|
|
AudioEffectFreeverbStereoFloat freeverb; |
|
|
|
AudioEffectFreeverbStereoFloat freeverb; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
AudioMixer<4> master_mixer_r; |
|
|
|
AudioMixer<4> master_mixer_r; |
|
|
|
AudioMixer<4> master_mixer_l; |
|
|
|
AudioMixer<4> master_mixer_l; |
|
|
|
AudioAmplifier volume_r; |
|
|
|
AudioAmplifier volume_r; |
|
|
|
AudioAmplifier volume_l; |
|
|
|
AudioAmplifier volume_l; |
|
|
|
AudioEffectStereoMono stereo2mono; |
|
|
|
AudioEffectStereoMono stereo2mono; |
|
|
|
AudioAnalyzePeak master_peak_r; |
|
|
|
AudioAnalyzePeak master_peak_r; |
|
|
|
AudioAnalyzePeak master_peak_l; |
|
|
|
AudioAnalyzePeak master_peak_l; |
|
|
|
#if defined(TEENSY_AUDIO_BOARD) && defined(SGTL5000_AUDIO_THRU) |
|
|
|
#if defined(TEENSY_AUDIO_BOARD) && defined(SGTL5000_AUDIO_THRU) |
|
|
|
AudioMixer<4> audio_thru_mixer_r; |
|
|
|
AudioMixer<4> audio_thru_mixer_r; |
|
|
|
AudioMixer<4> audio_thru_mixer_l; |
|
|
|
AudioMixer<4> audio_thru_mixer_l; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
// Drumset
|
|
|
|
// Drumset
|
|
|
|
#if NUM_DRUMS > 0 |
|
|
|
#if NUM_DRUMS > 0 |
|
|
|
//AudioPlayMemory* Drum[NUM_DRUMS];
|
|
|
|
|
|
|
|
AudioPlayArrayResmp* Drum[NUM_DRUMS]; |
|
|
|
AudioPlayArrayResmp* Drum[NUM_DRUMS]; |
|
|
|
AudioMixer<NUM_DRUMS> drum_mixer_r; |
|
|
|
AudioMixer<NUM_DRUMS> drum_mixer_r; |
|
|
|
AudioMixer<NUM_DRUMS> drum_mixer_l; |
|
|
|
AudioMixer<NUM_DRUMS> drum_mixer_l; |
|
|
|
|
|
|
|
|
|
|
|
#ifdef USE_FX |
|
|
|
#ifdef USE_FX |
|
|
|
#if NUM_DRUMS < 5 |
|
|
|
#if NUM_DRUMS < 5 |
|
|
|
AudioMixer<4> drum_reverb_send_mixer_r; |
|
|
|
AudioMixer<4> drum_reverb_send_mixer_r; |
|
|
|
AudioMixer<4> drum_reverb_send_mixer_l; |
|
|
|
AudioMixer<4> drum_reverb_send_mixer_l; |
|
|
|
#else |
|
|
|
#else |
|
|
|
AudioMixer<8> drum_reverb_send_mixer_r; |
|
|
|
AudioMixer<8> drum_reverb_send_mixer_r; |
|
|
|
AudioMixer<8> drum_reverb_send_mixer_l; |
|
|
|
AudioMixer<8> drum_reverb_send_mixer_l; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
// Outputs
|
|
|
|
// Outputs
|
|
|
|
#if defined(TEENSY_AUDIO_BOARD) |
|
|
|
#if defined(TEENSY_AUDIO_BOARD) |
|
|
|
AudioOutputI2S i2s1; |
|
|
|
AudioOutputI2S i2s1; |
|
|
|
#ifdef SGTL5000_AUDIO_ENHANCE |
|
|
|
#ifdef SGTL5000_AUDIO_ENHANCE |
|
|
|
AudioControlSGTL5000Plus sgtl5000; |
|
|
|
AudioControlSGTL5000Plus sgtl5000; |
|
|
|
#else |
|
|
|
#else |
|
|
|
AudioControlSGTL5000 sgtl5000; |
|
|
|
AudioControlSGTL5000 sgtl5000; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#elif defined (I2S_AUDIO_ONLY) |
|
|
|
#elif defined (I2S_AUDIO_ONLY) |
|
|
|
AudioOutputI2S i2s1; |
|
|
|
AudioOutputI2S i2s1; |
|
|
|
#elif defined(TGA_AUDIO_BOARD) |
|
|
|
#elif defined(TGA_AUDIO_BOARD) |
|
|
|
AudioOutputI2S i2s1; |
|
|
|
AudioOutputI2S i2s1; |
|
|
|
AudioControlWM8731master wm8731_1; |
|
|
|
AudioControlWM8731master wm8731_1; |
|
|
|
#elif defined(PT8211_AUDIO) |
|
|
|
#elif defined(PT8211_AUDIO) |
|
|
|
AudioOutputPT8211 pt8211_1; |
|
|
|
AudioOutputPT8211 pt8211_1; |
|
|
|
#elif defined(TEENSY_DAC_SYMMETRIC) |
|
|
|
#elif defined(TEENSY_DAC_SYMMETRIC) |
|
|
|
AudioOutputAnalogStereo dacOut; |
|
|
|
AudioOutputAnalogStereo dacOut; |
|
|
|
AudioMixer<4> invMixer; |
|
|
|
AudioMixer<4> invMixer; |
|
|
|
#elif defined(TEENSY_DAC) |
|
|
|
#elif defined(TEENSY_DAC) |
|
|
|
AudioOutputAnalogStereo dacOut; |
|
|
|
AudioOutputAnalogStereo dacOut; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#ifdef AUDIO_DEVICE_USB |
|
|
|
#ifdef AUDIO_DEVICE_USB |
|
|
|
AudioOutputUSB usb1; |
|
|
|
AudioOutputUSB usb1; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if defined(TEENSY_AUDIO_BOARD) && defined(SGTL5000_AUDIO_THRU) |
|
|
|
#if defined(TEENSY_AUDIO_BOARD) && defined(SGTL5000_AUDIO_THRU) |
|
|
|
AudioInputI2S i2s1in; |
|
|
|
AudioInputI2S i2s1in; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|