From c871886063936534877385ed9da10ea33a7baefa Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Wed, 20 Feb 2019 16:43:15 +0100 Subject: [PATCH] Small fixes. --- MicroDexed.ino | 7 +++++++ config.h | 2 +- midi_devices.hpp | 6 +++--- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/MicroDexed.ino b/MicroDexed.ino index 297d427..f543734 100644 --- a/MicroDexed.ino +++ b/MicroDexed.ino @@ -351,6 +351,9 @@ void loop() #endif } +/****************************************************************************** + * MIDI MESSAGE HANDLER + ******************************************************************************/ void handleNoteOn(byte inChannel, byte inNumber, byte inVelocity) { if (checkMidiChannel(inChannel)) @@ -647,6 +650,10 @@ void handleSystemReset(void) dexed->resetControllers(); } +/****************************************************************************** + * END OF MIDI MESSAGE HANDLER + ******************************************************************************/ + bool checkMidiChannel(byte inChannel) { // check for MIDI channel diff --git a/config.h b/config.h index f654aa7..0312a90 100644 --- a/config.h +++ b/config.h @@ -84,7 +84,7 @@ #define AUDIO_MEM 450 #endif #define DELAY_MAX_TIME 1200.0 -#define REDUCE_LOUDNESS 0 +#define REDUCE_LOUDNESS 1 #endif #define SAMPLE_RATE 44100 diff --git a/midi_devices.hpp b/midi_devices.hpp index 12e8d68..0721e43 100644 --- a/midi_devices.hpp +++ b/midi_devices.hpp @@ -1593,12 +1593,12 @@ void check_midi_devices(void) #ifdef MIDI_DEVICE_DIN midi_serial.read(); #endif +#ifdef MIDI_DEVICE_USB + midi_onboard_usb.read(); +#endif #ifdef MIDI_DEVICE_USB_HOST usb_host.Task(); midi_usb.read(); #endif -#ifdef MIDI_DEVICE_USB - midi_onboard_usb.read(); -#endif } #endif // MIDI_DEVICES_H