|
|
|
@ -407,10 +407,10 @@ int perform_release_mod[NUM_DEXED] = { 0 }; |
|
|
|
|
#endif |
|
|
|
|
#if defined(USE_FX) |
|
|
|
|
// Allocate the delay lines for chorus
|
|
|
|
|
int16_t delayline[NUM_DEXED][MOD_DELAY_SAMPLE_BUFFER]; |
|
|
|
|
int16_t* delayline[NUM_DEXED]; |
|
|
|
|
#ifdef USE_EPIANO |
|
|
|
|
int16_t ep_delayline_r[MOD_DELAY_SAMPLE_BUFFER]; |
|
|
|
|
int16_t ep_delayline_l[MOD_DELAY_SAMPLE_BUFFER]; |
|
|
|
|
int16_t* ep_delayline_r; |
|
|
|
|
int16_t* ep_delayline_l; |
|
|
|
|
#endif |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
@ -589,7 +589,8 @@ void setup() |
|
|
|
|
#if defined(USE_FX) |
|
|
|
|
#if defined(USE_EPIANO) |
|
|
|
|
// EP_CHORUS
|
|
|
|
|
memset(ep_delayline_r, 0, sizeof(ep_delayline_r)); |
|
|
|
|
ep_delayline_l = new int16_t[MOD_DELAY_SAMPLE_BUFFER]; |
|
|
|
|
memset(ep_delayline_r, 0, MOD_DELAY_SAMPLE_BUFFER * sizeof(int16_t)); |
|
|
|
|
if (!ep_modchorus_r.begin(ep_delayline_r, MOD_DELAY_SAMPLE_BUFFER)) |
|
|
|
|
{ |
|
|
|
|
#ifdef DEBUG |
|
|
|
@ -597,7 +598,8 @@ void setup() |
|
|
|
|
#endif |
|
|
|
|
while (1); |
|
|
|
|
} |
|
|
|
|
memset(ep_delayline_l, 0, sizeof(ep_delayline_l)); |
|
|
|
|
ep_delayline_r = new int16_t[MOD_DELAY_SAMPLE_BUFFER]; |
|
|
|
|
memset(ep_delayline_l, 0, MOD_DELAY_SAMPLE_BUFFER * sizeof(int16_t)); |
|
|
|
|
if (!ep_modchorus_l.begin(ep_delayline_l, MOD_DELAY_SAMPLE_BUFFER)) |
|
|
|
|
{ |
|
|
|
|
#ifdef DEBUG |
|
|
|
@ -629,7 +631,8 @@ void setup() |
|
|
|
|
#if defined(USE_FX) |
|
|
|
|
for (uint8_t instance_id = 0; instance_id < NUM_DEXED; instance_id++) |
|
|
|
|
{ |
|
|
|
|
memset(delayline[instance_id], 0, sizeof(delayline[instance_id])); |
|
|
|
|
delayline[instance_id] = new int16_t[MOD_DELAY_SAMPLE_BUFFER]; |
|
|
|
|
memset(delayline[instance_id], 0, MOD_DELAY_SAMPLE_BUFFER * sizeof(int16_t)); |
|
|
|
|
if (!modchorus[instance_id]->begin(delayline[instance_id], MOD_DELAY_SAMPLE_BUFFER)) { |
|
|
|
|
#ifdef DEBUG |
|
|
|
|
Serial.print(F("AudioEffectModulatedDelay - begin failed [")); |
|
|
|
|