Open williamjoy opened 1 year ago
Thanks for a great question! I'm afraid making keyboard multichannel would make the API too complicated. Multichannel MIDI would be better visualized with multiple keyboards as here: https://jazz-soft.net/demo/PlayMidiFile.html You can play with transparency and stack several keyboards on top of one another. I'll try to setup a demo when I have more time...
Thanks @jazz-soft , I did play the demos of multiple keyboards (and all demos without jazz plugin needed, nice project!) More specifically I want two channels of piano left hand and right hand channels to be visualized on same keyboard, and different styles for left and right hand. Similar as the Synthesia app :)
I'll try to see if transparency and stack several keyboards on top of one another
can do the work
Did some experiments of setting top
layer piano keyboard to transparent when key is in released state. It works nicely except the top layer piano white key drawing rectangle overlapped with black key.
https://github.com/williamjoy/virtual-midi-over-websocket/blob/de967fb9446c1c2e54c0a7302ee703ff054bf21f/index.html#L27-L28
no
transparency, sitting on bottom layer. Seem OKAbove screenshot shows the case when black keys not pressed but surrounding white key pressed.
@jazz-soft any suggestions how to better config the keyboard styles?
JZZ.input.Kbd(params);
from the doc,Is it possible to allow multiple channels? The use cases can be like:
visualize the passing signal
. And could also allow customizing different styles for midi event from different channels.The websocket server is connecting to physical MIDI devices with USB cable or with Apple RTP-Midi protocol etc, and broadcasts Midi events to websocket clients