add midi channel to note function

This commit is contained in:
2023-07-30 23:44:49 +02:00
parent 1d5126fe90
commit 78267f9c9e
2 changed files with 8 additions and 9 deletions

View File

@ -249,9 +249,7 @@ export class Editor {
(keycode, index) => {
if (event.keyCode === keycode) {
event.preventDefault();
// Check if Ctrl is pressed as well
if (event.ctrlKey) {
// We trigger a script if ctrl is pressed
this.api.script(keycode - 111)
} else {
this.changeToLocalBuffer(index);