Fixing panorama.

Fixing max voices for 240Mhz.
pull/32/head
Holger Wirtz 4 years ago
parent 7769d75ef4
commit 7d4a27ca15
  1. 8
      config.h
  2. 2
      effect_mono_stereo.cpp

@ -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 // 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 USB_MIDI_SYSEX_MAX 4104
#define VERSION "1.0.9" #define VERSION "1.0.10"
//************************************************************************************************* //*************************************************************************************************
//* DEVICE SETTINGS //* DEVICE SETTINGS
@ -92,7 +92,7 @@
//************************************************************************************************* //*************************************************************************************************
//* DEBUG OUTPUT SETTINGS //* DEBUG OUTPUT SETTINGS
//************************************************************************************************* //*************************************************************************************************
#define DEBUG 1 //#define DEBUG 1
#define SERIAL_SPEED 230400 #define SERIAL_SPEED 230400
#define SHOW_XRUN 1 #define SHOW_XRUN 1
#define SHOW_CPU_LOAD_MSEC 5000 #define SHOW_CPU_LOAD_MSEC 5000
@ -292,6 +292,8 @@
# if NUM_DEXED == 1 # if NUM_DEXED == 1
# if F_CPU == 256000000 # if F_CPU == 256000000
# define MAX_NOTES 20 # define MAX_NOTES 20
# elif F_CPU == 240000000
# define MAX_NOTES 18
# elif F_CPU == 216000000 # elif F_CPU == 216000000
# define MAX_NOTES 16 # define MAX_NOTES 16
# else # else
@ -301,6 +303,8 @@
# else # else
# if F_CPU == 256000000 # if F_CPU == 256000000
# define MAX_NOTES 8 # define MAX_NOTES 8
# elif F_CPU == 240000000
# define MAX_NOTES 7
# elif F_CPU == 216000000 # elif F_CPU == 216000000
# define MAX_NOTES 6 # define MAX_NOTES 6
# else # else

@ -40,7 +40,7 @@ inline float mapfloat(float val, float in_min, float in_max, float out_min, floa
void AudioEffectMonoStereo::panorama(float p) 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) void AudioEffectMonoStereo::update(void)

Loading…
Cancel
Save