Closed amowry closed 1 year ago
#include <MIDI.h>
struct MySettings : public MIDI_NAMESPACE::DefaultSettings {
static const bool Use1ByteParsing = false; //parse more than 1 byte per MIDI.read()
};
MIDI_CREATE_CUSTOM_INSTANCE(HardwareSerial, Serial, MIDI, MySettings);
void setup() {
}
void loop() {
}
The above compiles (for an UNO).
Some questions: are BLEMidi
and Adafruit_USBD_MIDI
serial devices?
These are instances of BLE MIDI and USB MIDI--I'm using modifications of the Adafruit Bluefruit and TinyUSB MIDI examples below. I'm not sure if those are implemented as serial in the Adafruit libraries?:
It looks like it's the same baud rate error that was occurring here: https://github.com/FortySevenEffects/arduino_midi_library/discussions/323
What version of this library are you using? The release
version or the latest
version?
I'm using 5.0.2, which I believe is the release version.
Try to remove the release version (installed by the Arduino IDE) and replace with the latest version from github.
That worked! Thanks!
@franky47 we need to make a release of the current code to avoid this in the future.
@lathoub Agreed. I managed to fix the CI errors on the 5.1.0 PR, so it's in a good way for a release. I'll work on that further during my holidays next week.
I started this as a discussion but I'm adding it as an issue because as far as I can tell I'm following the instructions (though I certainly could be wrong about that :)). I'm using an ItsyBitsy NRF52840 Express board, and I'm trying to override one of the default settings (1-byte parsing):
The default instances (commented out above) work fine, but the custom instances result in errors concerning the baud rate:
Could someone tell me what I'm doing wrong? Thanks!
_Originally posted by @amowry in https://github.com/FortySevenEffects/arduino_midi_library/discussions/329_