|
|
|
@ -59,27 +59,6 @@ AudioOutputUSB usb1; |
|
|
|
|
#endif |
|
|
|
|
AudioEffectStereoMono stereomono1; |
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// Dynamic patching
|
|
|
|
|
//
|
|
|
|
|
uint8_t nDynamic = 0; |
|
|
|
|
#ifdef USE_REVERB |
|
|
|
|
AudioConnection * dynamicConnections[NUM_DEXED * 7]; |
|
|
|
|
#else |
|
|
|
|
AudioConnection * dynamicConnections[NUM_DEXED * 6]; |
|
|
|
|
#endif |
|
|
|
|
void create_audio_connections(AudioSourceMicroDexed &d, uint8_t instance_id) |
|
|
|
|
{ |
|
|
|
|
dynamicConnections[nDynamic++] = new AudioConnection(d, peak1); |
|
|
|
|
#if defined(USE_REVERB) |
|
|
|
|
dynamicConnections[nDynamic++] = new AudioConnection(d, 0, reverb_mixer, instance_id); |
|
|
|
|
#endif |
|
|
|
|
dynamicConnections[nDynamic++] = new AudioConnection(d, 0, delay_mixer, instance_id); |
|
|
|
|
dynamicConnections[nDynamic++] = new AudioConnection(d, 0, chorus_mixer, instance_id); |
|
|
|
|
dynamicConnections[nDynamic++] = new AudioConnection(d, 0 , master_mixer_r, 0); |
|
|
|
|
dynamicConnections[nDynamic++] = new AudioConnection(d, 0 , master_mixer_l, 0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Audio connections
|
|
|
|
|
AudioConnection patchCord1(modulator, 0, modchorus, 1); |
|
|
|
|
AudioConnection patchCord2(chorus_mixer, 0, modchorus, 0); |
|
|
|
@ -144,6 +123,27 @@ AudioConnection patchCord35(stereomono1, 0, dacOut, 0); |
|
|
|
|
AudioConnection patchCord36(stereomono1, 1, dacOut, 1); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// Dynamic patching
|
|
|
|
|
//
|
|
|
|
|
uint8_t nDynamic = 0; |
|
|
|
|
#ifdef USE_REVERB |
|
|
|
|
AudioConnection * dynamicConnections[NUM_DEXED * 7]; |
|
|
|
|
#else |
|
|
|
|
AudioConnection * dynamicConnections[NUM_DEXED * 6]; |
|
|
|
|
#endif |
|
|
|
|
void create_audio_connections(AudioSourceMicroDexed &d, uint8_t instance_id) |
|
|
|
|
{ |
|
|
|
|
dynamicConnections[nDynamic++] = new AudioConnection(d, peak1); |
|
|
|
|
#if defined(USE_REVERB) |
|
|
|
|
dynamicConnections[nDynamic++] = new AudioConnection(d, 0, reverb_mixer, instance_id); |
|
|
|
|
#endif |
|
|
|
|
dynamicConnections[nDynamic++] = new AudioConnection(d, 0, delay_mixer, instance_id); |
|
|
|
|
dynamicConnections[nDynamic++] = new AudioConnection(d, 0, chorus_mixer, instance_id); |
|
|
|
|
dynamicConnections[nDynamic++] = new AudioConnection(d, 0 , master_mixer_r, 0); |
|
|
|
|
dynamicConnections[nDynamic++] = new AudioConnection(d, 0 , master_mixer_l, 0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool sd_card_available = false; |
|
|
|
|
uint8_t max_loaded_banks = 0; |
|
|
|
|
char bank_name[NUM_DEXED][BANK_NAME_LEN]; |
|
|
|
|