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. 13
      MicroDexed.ino
  2. 13
      config.h

@ -13,7 +13,7 @@
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
@ -252,16 +252,19 @@ uint8_t selected_instance_id = 0;
#ifdef TEENSY4 #ifdef TEENSY4
#if NUM_DEXED>1 #if NUM_DEXED>1
int8_t midi_decay[NUM_DEXED] = { -1, -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 #else
int8_t midi_decay[NUM_DEXED] = { -1}; int8_t midi_decay[NUM_DEXED] = { -1};
int perform_attack_mod[NUM_DEXED] = { 0 };
int perform_release_mod[NUM_DEXED] = { 0 };
#endif #endif
elapsedMillis midi_decay_timer; elapsedMillis midi_decay_timer;
#endif #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) #if defined(USE_FX)
// Allocate the delay lines for chorus // Allocate the delay lines for chorus
int16_t delayline[NUM_DEXED][MOD_DELAY_SAMPLE_BUFFER]; int16_t delayline[NUM_DEXED][MOD_DELAY_SAMPLE_BUFFER];

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

Loading…
Cancel
Save