Public bug reported: Binary package hint: pmidi
This bug was originally reported by fueryuejing. https://bugs.launchpad.net/ubuntu-jp-improvement/+bug/307143 pmidi use wrong device number on multi port midi file and send SysEx all ports. This problem is caused in src/midiread.c:257-264. Further information is following: a. Device num (msp->device) and port num (msp->port) is served to deal multi port if channel num is over 16. For example, if port num is 0 and channel is 2, then device num become 16*0+(2-1)=1. If port num is 2 and channel is 14, then device num become 16*2+(14-1)=45. b. Therefore if status byte (status) is channel message (0x80-0xef), destination device num of message must be "port(msp>-port)*16+channel(ch)". c. However if status byte is SysEx message (0xf0-0xff), device num must eqaul to "port(msp->port)*16", because this message is not channel specified. d. In source code at this time, if pmidi is recived SysEx message, debice num(msp->device) will be 0, even use any port and channel num. e. This patch is that default device num set to "port(msp>-port)*16+channel(ch)". And add channel num to device num, if message is not SysEx. ** Affects: pmidi (Ubuntu) Importance: Undecided Status: New -- pmidi use wrong device number https://bugs.launchpad.net/bugs/316265 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
