|
|
|
@ -129,8 +129,11 @@ void create_audio_connections(AudioSourceMicroDexed &d) |
|
|
|
|
dynamicConnections[nDynamic++] = new AudioConnection(d, 0 , master_mixer_l, 0); |
|
|
|
|
#if defined(USE_REVERB) |
|
|
|
|
dynamicConnections[nDynamic++] = new AudioConnection(d, 0, freeverbs1, 0); |
|
|
|
|
dynamicConnections[nDynamic++] = new AudioConnection(d, 0, freeverbs1, 1); |
|
|
|
|
#endif |
|
|
|
|
for (int i = 0; i < nDynamic; i++) { |
|
|
|
|
if (dynamicConnections[i] == NULL) |
|
|
|
|
Serial.printf ("Bad connection %d\n", i); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool sd_card_available = false; |
|
|
|
@ -160,7 +163,7 @@ config_t configuration; |
|
|
|
|
uint8_t selected_dexed_instance = 0; |
|
|
|
|
|
|
|
|
|
// Allocate the delay lines for chorus
|
|
|
|
|
short delayline[MOD_DELAY_SAMPLE_BUFFER]; |
|
|
|
|
int16_t delayline[MOD_DELAY_SAMPLE_BUFFER]; |
|
|
|
|
|
|
|
|
|
#ifdef ENABLE_LCD_UI |
|
|
|
|
/***********************************************************************
|
|
|
|
@ -209,6 +212,9 @@ void setup() |
|
|
|
|
Serial.print(F("Creating MicroDexed engine ")); |
|
|
|
|
Serial.println(i, DEC); |
|
|
|
|
MicroDexed[i] = new AudioSourceMicroDexed(SAMPLE_RATE); |
|
|
|
|
if (MicroDexed[i] == NULL) { |
|
|
|
|
Serial.print(F("Unable to create MicroDexed engine!")); |
|
|
|
|
} |
|
|
|
|
create_audio_connections(*MicroDexed[i]); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -312,7 +318,7 @@ void setup() |
|
|
|
|
change_disp_sd(true); |
|
|
|
|
#endif |
|
|
|
|
// Init effects
|
|
|
|
|
memset(delayline, 0, MOD_DELAY_SAMPLE_BUFFER); |
|
|
|
|
memset(delayline, 0, sizeof(delayline)); |
|
|
|
|
if (!modchorus.begin(delayline, MOD_DELAY_SAMPLE_BUFFER)) { |
|
|
|
|
Serial.println(F("AudioEffectModulatedDelay - begin failed")); |
|
|
|
|
while (1); |
|
|
|
|