-
Notifications
You must be signed in to change notification settings - Fork 26
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
[BUG] MT4 to USB MIDI 1.0 message conversion issue. #328
Comments
Thank you for this test and report. |
On this one, the MIDI 1.0 velocity will need to be 7 bits, not 8.
In either case, |
Yes, it was my miswriting. |
Found a casting bug which caused the FFFF to become zero. Thanks. |
Fix a couple bugs reported in issue #328
Also: Velocity 0 for Note off (0x8) is valid. It's only the Note On message (0x9) where a 0 velocity in MIDI 2.0 protocol is translated to 1 when in MIDI 1.0 protocol. |
Hmm, there is still something wrong with the translator. First, I would like to make sure the expected result. Is this right? If so, Note ON velocity and Data Entry seem not translated correctly. I sent Test328.txt to verify.
|
Looking into this. |
Verified this works with DP7. Results sending Test328.txt to a MIDI 1.0 hardware loopback The only difference is the 0 vs 1 for velocity in the first message. I see Andrew's libmidi2 translates the Note Off with zero velocity to Note off with 1 velocity, like it does for note on. Edit: Actually, that's the down-scaling of the 0x0200 velocity in the second MT4 word of the note off message, which also happens to be the example in the spec. "MIDI Velocity = 0x01: translates to 0x0200" 0x40804000 0x02000000
0x40904000 0xFFFF0000
0x40201357 0x55555555
0x40302468 0xCDCDCDCD |
Closed with release of DP7 |
Describe the bug
MT4 messages sent to USB MIDI 1.0 devices that work with the USB MIDI 2.0 driver have several message conversion issues.
Note On/Off velocity value is always zero.
RPN/NRPN Data Entry value converted to 14bits value is incorrect.
To Reproduce
Installer Name or Version
Desktop (please complete the following information):
Device information, if this is with an external MIDI device:
The text was updated successfully, but these errors were encountered: