Small fixes.

pull/4/head
Holger Wirtz 5 years ago
parent 5ad4c2471f
commit c871886063
  1. 7
      MicroDexed.ino
  2. 2
      config.h
  3. 6
      midi_devices.hpp

@ -351,6 +351,9 @@ void loop()
#endif #endif
} }
/******************************************************************************
* MIDI MESSAGE HANDLER
******************************************************************************/
void handleNoteOn(byte inChannel, byte inNumber, byte inVelocity) void handleNoteOn(byte inChannel, byte inNumber, byte inVelocity)
{ {
if (checkMidiChannel(inChannel)) if (checkMidiChannel(inChannel))
@ -647,6 +650,10 @@ void handleSystemReset(void)
dexed->resetControllers(); dexed->resetControllers();
} }
/******************************************************************************
* END OF MIDI MESSAGE HANDLER
******************************************************************************/
bool checkMidiChannel(byte inChannel) bool checkMidiChannel(byte inChannel)
{ {
// check for MIDI channel // check for MIDI channel

@ -84,7 +84,7 @@
#define AUDIO_MEM 450 #define AUDIO_MEM 450
#endif #endif
#define DELAY_MAX_TIME 1200.0 #define DELAY_MAX_TIME 1200.0
#define REDUCE_LOUDNESS 0 #define REDUCE_LOUDNESS 1
#endif #endif
#define SAMPLE_RATE 44100 #define SAMPLE_RATE 44100

@ -1593,12 +1593,12 @@ void check_midi_devices(void)
#ifdef MIDI_DEVICE_DIN #ifdef MIDI_DEVICE_DIN
midi_serial.read(); midi_serial.read();
#endif #endif
#ifdef MIDI_DEVICE_USB
midi_onboard_usb.read();
#endif
#ifdef MIDI_DEVICE_USB_HOST #ifdef MIDI_DEVICE_USB_HOST
usb_host.Task(); usb_host.Task();
midi_usb.read(); midi_usb.read();
#endif #endif
#ifdef MIDI_DEVICE_USB
midi_onboard_usb.read();
#endif
} }
#endif // MIDI_DEVICES_H #endif // MIDI_DEVICES_H

Loading…
Cancel
Save