Small fixes.

pull/4/head
Holger Wirtz 6 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
}
/******************************************************************************
* 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

@ -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

@ -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

Loading…
Cancel
Save