Skip to content

Commit

Permalink
faster midi note trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
steveseguin committed Jan 20, 2025
1 parent 42520af commit c838af9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -7696,7 +7696,9 @@ function triggerMidiNote(note = 64) {
}
try {
WebMidi.outputs.forEach(output => {
output.playNote(note, {duration:100});
//output.playNote(note);
output.send([0x90, note, 127]); // Note On
output.send([0x80, note, 0]); // Note Off
});
} catch(e){
console.warn(e);
Expand Down

0 comments on commit c838af9

Please sign in to comment.