From c173ca1e297f84d627159aca44ffd2337ccfda46 Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Sun, 2 Dec 2018 10:42:00 +0100 Subject: [PATCH] Fix for delay time when using a PT8211 (only half the time is possible). --- UI.cpp | 2 +- config.h | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/UI.cpp b/UI.cpp index b25e4eb..02d27c3 100644 --- a/UI.cpp +++ b/UI.cpp @@ -557,7 +557,7 @@ void ui_show_effects_delay(void) lcd.show(1, 8, 5, "Vol:"); } - lcd.show(0, 9, 4, map(effect_delay_time, 0, ENC_DELAY_TIME_STEPS, 0, 1200)); + lcd.show(0, 9, 4, map(effect_delay_time, 0, ENC_DELAY_TIME_STEPS, 0, DELAY_MAX_TIME)); lcd.show(1, 4, 2, map(effect_delay_feedback, 0, ENC_DELAY_FB_STEPS, 0, 99)); lcd.show(1, 13, 2, map(effect_delay_volume, 0, ENC_DELAY_VOLUME_STEPS, 0, 99)); diff --git a/config.h b/config.h index a0328f9..953be40 100644 --- a/config.h +++ b/config.h @@ -35,7 +35,7 @@ #define VERSION 1.0.0 #define MIDI_DEVICE Serial1 #define USE_ONBOARD_USB_HOST 1 -//#define MIDI_MERGE_THRU 1 +#define MIDI_MERGE_THRU 1 #define TEENSY_AUDIO_BOARD 1 #define VOLUME 0.6 #define DEFAULT_MIDI_CHANNEL MIDI_CHANNEL_OMNI @@ -44,8 +44,10 @@ //#define DEXED_ENGINE DEXED_ENGINE_MODERN #ifndef TEENSY_AUDIO_BOARD #define AUDIO_MEM 450 +#define DELAY_MAX_TIME 600.0 #else #define AUDIO_MEM 900 +#define DELAY_MAX_TIME 1200.0 #endif #define SAMPLE_RATE 44100 #define MAX_BANKS 100 @@ -62,7 +64,6 @@ // EFFECTS #define FILTER_MAX_FREQ 10000 -#define DELAY_MAX_TIME 1200.0 // Master key handling (comment for disabling) //#define MASTER_KEY_MIDI MIDI_C7 @@ -70,7 +71,7 @@ // Debug output #define SERIAL_SPEED 38400 -//#define DEBUG 1 +#define DEBUG 1 #define SHOW_MIDI_EVENT 1 #define SHOW_XRUN 1 #define SHOW_CPU_LOAD_MSEC 5000 @@ -78,7 +79,7 @@ // Some optimizations #define USE_TEENSY_DSP 1 #define SUM_UP_AS_INT 1 -#define REDUCE_LOUDNESS 1 +#define REDUCE_LOUDNESS 0 // Enable TEST_NOTE for adding code to drop some midi notes for testing without keyboard //#define TEST_NOTE MIDI_E2