minor bugfixes

This commit is contained in:
2023-07-31 16:01:17 +02:00
parent 77b17b4f0e
commit 4b601045c8
2 changed files with 4 additions and 1 deletions

View File

@ -72,7 +72,7 @@ export class MidiConnection{
const timeoutId = setTimeout(() => {
output.send(noteOffMessage);
delete this.scheduledNotes[noteNumber];
}, durationMs);
}, durationMs - 100);
this.scheduledNotes[noteNumber] = timeoutId;
} else {

View File

@ -252,6 +252,7 @@ export class Editor {
if (event.ctrlKey) {
this.api.script(keycode - 111)
} else {
this.changeModeFromInterface("local");
this.changeToLocalBuffer(index);
}
}
@ -365,6 +366,8 @@ export class Editor {
this.loadUniverse(query);
this.buffer_search.value = "";
this.closeBuffersModal();
// Focus on the editor
this.view.focus();
}
}
});