Fixed not working sustain pedal.

Fixed enabling of effects.
pull/4/head
Holger Wirtz 6 years ago
parent 20221e4c24
commit 3a0a571d50
  1. 3
      MicroDexed.ino
  2. 2
      UI.cpp
  3. 4
      config.h

@ -334,7 +334,7 @@ void loop()
const uint16_t audio_block_time_us = 1000000 / (SAMPLE_RATE / AUDIO_BLOCK_SAMPLES); const uint16_t audio_block_time_us = 1000000 / (SAMPLE_RATE / AUDIO_BLOCK_SAMPLES);
// Main sound calculation // Main sound calculation
if (queue1.available() && fill_audio_buffer > audio_block_time_us-10) if (queue1.available() && fill_audio_buffer > audio_block_time_us - 10)
{ {
fill_audio_buffer = 0; fill_audio_buffer = 0;
@ -644,6 +644,7 @@ bool queue_midi_event(uint8_t type, uint8_t data1, uint8_t data2)
mixer2.gain(1, mapfloat(effect_delay_volume, 0, 99, 0.0, 1.0)); // delay tap1 signal (with added feedback) mixer2.gain(1, mapfloat(effect_delay_volume, 0, 99, 0.0, 1.0)); // delay tap1 signal (with added feedback)
break; break;
default: default:
ret = dexed->processMidiMessage(type, data1, data2);
break; break;
} }
} }

@ -74,6 +74,7 @@ void handle_ui(void)
#ifdef DEBUG #ifdef DEBUG
Serial.print(F("Long button pressing detected for button ")); Serial.print(F("Long button pressing detected for button "));
Serial.println(i, DEC); Serial.println(i, DEC);
#endif
switch (i) switch (i)
{ {
@ -103,7 +104,6 @@ void handle_ui(void)
} }
break; break;
} }
#endif
} }
else else
{ {

@ -35,7 +35,7 @@
#define VERSION 1.0.0 #define VERSION 1.0.0
#define MIDI_DEVICE Serial1 #define MIDI_DEVICE Serial1
#define USE_ONBOARD_USB_HOST 1 #define USE_ONBOARD_USB_HOST 1
#define MIDI_MERGE_THRU 1 //#define MIDI_MERGE_THRU 1
#define TEENSY_AUDIO_BOARD 1 #define TEENSY_AUDIO_BOARD 1
#define VOLUME 0.6 #define VOLUME 0.6
#define DEFAULT_MIDI_CHANNEL MIDI_CHANNEL_OMNI #define DEFAULT_MIDI_CHANNEL MIDI_CHANNEL_OMNI
@ -70,7 +70,7 @@
// Debug output // Debug output
#define SERIAL_SPEED 38400 #define SERIAL_SPEED 38400
#define DEBUG 1 //#define DEBUG 1
#define SHOW_MIDI_EVENT 1 #define SHOW_MIDI_EVENT 1
#define SHOW_XRUN 1 #define SHOW_XRUN 1
#define SHOW_CPU_LOAD_MSEC 5000 #define SHOW_CPU_LOAD_MSEC 5000

Loading…
Cancel
Save