-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/midi transceiver fails on short/system messages #347
base: master
Are you sure you want to change the base?
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 |
… NOTE_ON message with velocity 0"
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.