Open m-komo opened 5 months ago
Thank you for this test and report.
On this one, the MIDI 1.0 velocity will need to be 7 bits, not 8.
09 90 40 FF
should actually be 09 90 40 7F
In either case, 00
is not correct, but it shouldn't be FF
In either case, 00 is not correct, but it shouldn't be FF
Yes, it was my miswriting. Thank you.
Found a casting bug which caused the FFFF to become zero. Thanks.
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. Following is the expected result based on my understanding.
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
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"
My apologies, the table I shared should be as below:
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.
1) Note On/Off velocity value is always zero.
2) 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: