Skip to content

Commit

Permalink
✨ Web: Add space keybinding to generate a new white image
Browse files Browse the repository at this point in the history
  • Loading branch information
ewen-lbh committed May 1, 2024
1 parent 49ea577 commit 9b95cd6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@

window.pedal_held = false

window.addEventListener("keypress", (e) => {
if (e.key === " ") {
window.render_image(1, "white")
}
})

console.log("requesting midi access")
navigator.requestMIDIAccess().then((midiAccess) => {
Array.from(midiAccess.inputs).forEach((input) => {
Expand Down

0 comments on commit 9b95cd6

Please sign in to comment.