You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A little known feature of the keyboard control is that you can play it with the computer QWERTY keyboard e.g.
Q C4
W D4
E E4
R F4
etc.
however the state of ctrl/shift/meta is not checked, meaning that e.g. both R and SHIFT-R will play F4.
Unfortunately CMD-R will also play F4 - which is leading to stuck notes when I refresh my midi app web page! You see, I use the standard CMD-R to reload the browser page (to load the latest code), and just before the reload, a F4 noteon is send to my midi device - because of the R in CMD-R. A subsequent noteoff is never send because the browser app has now just reloaded and is in a starting state, with no knowledge of what happened before.
Here is the webaudio-controls.js code which I think should be changed to check for the state of ctrl/shift/meta and only send keyboard events when no modifier key is pressed.
Also, arguably this "playing via keyboard" feature should be documented and an attribute added to control whether the developer wants this feature on, as it could interfere in other ways with a web app.
The text was updated successfully, but these errors were encountered:
A little known feature of the keyboard control is that you can play it with the computer QWERTY keyboard e.g.
however the state of ctrl/shift/meta is not checked, meaning that e.g. both
R
andSHIFT-R
will play F4.Unfortunately
CMD-R
will also play F4 - which is leading to stuck notes when I refresh my midi app web page! You see, I use the standardCMD-R
to reload the browser page (to load the latest code), and just before the reload, a F4noteon
is send to my midi device - because of theR
inCMD-R
. A subsequentnoteoff
is never send because the browser app has now just reloaded and is in a starting state, with no knowledge of what happened before.Here is the
webaudio-controls.js
code which I think should be changed to check for the state of ctrl/shift/meta and only send keyboard events when no modifier key is pressed.Also, arguably this "playing via keyboard" feature should be documented and an attribute added to control whether the developer wants this feature on, as it could interfere in other ways with a web app.
The text was updated successfully, but these errors were encountered: