FortySevenEffects / arduino_midi_library

MIDI for Arduino
MIT License
1.56k stars 253 forks source link

Ensure correct message length after parsing #193

Open fabien-gigante opened 3 years ago

fabien-gigante commented 3 years ago

After parsing the message length was not properly set in multiple cases. Which doesn't allow for instance to use those messages as is with send(). Typical usage below.

  LocalMIDI.setHandleMessage([](const midi::Message<128>& msg) { RemoteMIDI.send(msg); });
  RemoteMIDI.setHandleMessage([](const midi::Message<128>& msg) { LocalMIDI.send(msg); });