Moved creation of the FAV folders for every voice into the store function for less code running at startup.

pull/44/head
Holger Wirtz 3 years ago
parent e42232a9d5
commit 7e537456e7
  1. 24
      MicroDexed.ino
  2. 1
      UI.hpp
  3. 2
      config.h

@ -176,7 +176,7 @@ AudioConnection * dynamicConnections[NUM_DEXED * 5];
#endif #endif
void create_audio_engine_chain(uint8_t instance_id) void create_audio_engine_chain(uint8_t instance_id)
{ {
MicroDexed[instance_id] = new AudioSynthDexed(MAX_VOICES,SAMPLE_RATE); MicroDexed[instance_id] = new AudioSynthDexed(MAX_VOICES, SAMPLE_RATE);
mono2stereo[instance_id] = new AudioEffectMonoStereo(); mono2stereo[instance_id] = new AudioEffectMonoStereo();
#if defined(USE_FX) #if defined(USE_FX)
chorus_modulator[instance_id] = new AudioSynthWaveform(); chorus_modulator[instance_id] = new AudioSynthWaveform();
@ -2225,16 +2225,18 @@ void check_and_create_directories(void)
SD.mkdir(tmp); SD.mkdir(tmp);
} }
for (uint8_t i = 0; i < MAX_BANKS; i++) /*
{ for (uint8_t i = 0; i < MAX_BANKS; i++)
sprintf(tmp, "/%s/%d", FAV_CONFIG_PATH, i); {
#ifdef DEBUG sprintf(tmp, "/%s/%d", FAV_CONFIG_PATH, i);
Serial.print(F("Creating directory ")); #ifdef DEBUG
Serial.println(tmp); Serial.print(F("Creating directory "));
#endif Serial.println(tmp);
if (!SD.exists(tmp)) #endif
SD.mkdir(tmp); if (!SD.exists(tmp))
} SD.mkdir(tmp);
}
*/
} }
#ifdef DEBUG #ifdef DEBUG
else else

@ -6311,6 +6311,7 @@ void save_favorite(uint8_t b, uint8_t v, uint8_t instance_id)
if (!SD.exists(tmp)) if (!SD.exists(tmp))
{ //create Favorite Semaphore { //create Favorite Semaphore
SD.mkdir(tmp);
myFav = SD.open(tmp, FILE_WRITE); myFav = SD.open(tmp, FILE_WRITE);
myFav.close(); myFav.close();
Serial.println("Favorite saved..."); Serial.println("Favorite saved...");

@ -59,7 +59,7 @@
// sed -i.orig 's/^#define USB_MIDI_SYSEX_MAX 290/#define USB_MIDI_SYSEX_MAX 4104/' /usr/local/arduino-teensy/hardware/teensy/avr/cores/teensy4/usb_midi.h // sed -i.orig 's/^#define USB_MIDI_SYSEX_MAX 290/#define USB_MIDI_SYSEX_MAX 4104/' /usr/local/arduino-teensy/hardware/teensy/avr/cores/teensy4/usb_midi.h
//#define USB_MIDI_SYSEX_MAX 4104 //#define USB_MIDI_SYSEX_MAX 4104
#define VERSION "1.0.19" #define VERSION "1.1.0"
//************************************************************************************************* //*************************************************************************************************
//* DEVICE SETTINGS //* DEVICE SETTINGS

Loading…
Cancel
Save