Fix/midi transceiver fails on short/system messages - #347
Conversation
… without data byes (they won't be handled, but logged on trace level). * fix: NOTE_OFF trigger carries velocity information * default MidiDeviceReceiver refactored to "trigger" function to avoid code cascading * MIDI message sending functions refactored to share one "send" function with a message factory * MidiEventType.CONTROL_CHANGED renamed to MidiEventType.CONTROL_CHANGED for consistency * MidiEventType extended with all the types supported by MIDI * NOTE_OFF MIDI event fixed to carry also velocity required by MIDI standard for NOTE_OFF MIDI message * tests including mocks of Java MIDI devices
|
Hi :)
|
We are not using any mocking framework, because there is almost no unit tests. :) And maybe the difficulty of writing tests without mocking framework is one of the reasons behind it. For example
Interestingly enough |
|
Oops, I just notice that |
I had a problem with
orx-midi. My Yamaha keyboard is sending system MIDI events without data payload and channel information, which was crashing the program withArrayIndexOutOfBounds. This PR is addressing all the issues while adding some features.