Fixes for T_3.6. I am pretty sure that there is too few AUDIO_MEM for the delay when using dual instances. Perhaps T_3.6 should only use one instance. Will fix this later.

pull/44/head
Holger Wirtz 3 years ago
parent ea403e2603
commit 734b23dc35
  1. 11
      MicroDexed.ino
  2. 13
      config.h

@ -252,16 +252,19 @@ uint8_t selected_instance_id = 0;
#ifdef TEENSY4
#if NUM_DEXED>1
int8_t midi_decay[NUM_DEXED] = { -1, -1};
int perform_attack_mod[NUM_DEXED] = { 0, 0};
int perform_release_mod[NUM_DEXED] = { 0, 0};
#else
int8_t midi_decay[NUM_DEXED] = { -1};
int perform_attack_mod[NUM_DEXED] = { 0 };
int perform_release_mod[NUM_DEXED] = { 0 };
#endif
elapsedMillis midi_decay_timer;
#endif
#if NUM_DEXED>1
int perform_attack_mod[NUM_DEXED] = { 0, 0};
int perform_release_mod[NUM_DEXED] = { 0, 0};
#else
int perform_attack_mod[NUM_DEXED] = { 0 };
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];

@ -128,11 +128,11 @@
//* AUDIO SOFTWARE SETTINGS
//*************************************************************************************************
#define SAMPLE_RATE 44100
//#if AUDIO_BLOCK_SAMPLES == 64
//#define AUDIO_MEM 256
//#else
#define AUDIO_MEM 750
//#endif
#if AUDIO_BLOCK_SAMPLES == 64
#define AUDIO_MEM 256
#else
#define AUDIO_MEM 64
#endif
#ifdef TEENSY_AUDIO_BOARD
/*
@ -170,13 +170,10 @@
#else
#if defined(TEENSY3_6)
#define DELAY_MAX_TIME 500
#define AUDIO_MEM 360
#elif defined(TEENSY4)
#define DELAY_MAX_TIME 1000
#define AUDIO_MEM 750
#else
#define DELAY_MAX_TIME 250
#define AUDIO_MEM 200
#endif
#endif

Loading…
Cancel
Save