Skip to content

Unexpected SysEx Behavior #198

Answered by franky47
randel0 asked this question in Q&A
Feb 2, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

It looks like a long message, by default the library handles SysEx up to 128 bytes.

Any message longer than that may cause issues.

Fortunately, you can increase the maximum SysEx size in the settings:

struct MySettings : public midi::DefaultSettings
{
    static const unsigned SysExMaxSize = 256; // Accept SysEx messages up to 256 bytes long.
};

// Create a 'MIDI' object using MySettings bound to Serial2.
MIDI_CREATE_CUSTOM_INSTANCE(HardwareSerial, Serial2, MIDI, MySettings);

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@randel0
Comment options

@franky47
Comment options

Answer selected by franky47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants