From 7d4a27ca1588044e6318c0dccf822f2efb0ec067 Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Tue, 20 Oct 2020 17:27:43 +0200 Subject: [PATCH] Fixing panorama. Fixing max voices for 240Mhz. --- config.h | 8 ++++++-- effect_mono_stereo.cpp | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/config.h b/config.h index 33351d9..1f886a9 100644 --- a/config.h +++ b/config.h @@ -56,7 +56,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/teensy3/usb_midi.h //#define USB_MIDI_SYSEX_MAX 4104 -#define VERSION "1.0.9" +#define VERSION "1.0.10" //************************************************************************************************* //* DEVICE SETTINGS @@ -92,7 +92,7 @@ //************************************************************************************************* //* DEBUG OUTPUT SETTINGS //************************************************************************************************* -#define DEBUG 1 +//#define DEBUG 1 #define SERIAL_SPEED 230400 #define SHOW_XRUN 1 #define SHOW_CPU_LOAD_MSEC 5000 @@ -292,6 +292,8 @@ # if NUM_DEXED == 1 # if F_CPU == 256000000 # define MAX_NOTES 20 +# elif F_CPU == 240000000 +# define MAX_NOTES 18 # elif F_CPU == 216000000 # define MAX_NOTES 16 # else @@ -301,6 +303,8 @@ # else # if F_CPU == 256000000 # define MAX_NOTES 8 +# elif F_CPU == 240000000 +# define MAX_NOTES 7 # elif F_CPU == 216000000 # define MAX_NOTES 6 # else diff --git a/effect_mono_stereo.cpp b/effect_mono_stereo.cpp index bfe2c10..8a038aa 100644 --- a/effect_mono_stereo.cpp +++ b/effect_mono_stereo.cpp @@ -40,7 +40,7 @@ inline float mapfloat(float val, float in_min, float in_max, float out_min, floa void AudioEffectMonoStereo::panorama(float p) { - pan = mapfloat(p, -1.0, 1.0, 0.0, 1.0); + pan = mapfloat(p, -1.0, 1.0, 1.0, 0.0); } void AudioEffectMonoStereo::update(void)