From e449efe1bab05a0a28c3c9c80be01528477e4dde Mon Sep 17 00:00:00 2001 From: adrien Date: Sat, 31 Jan 2026 21:47:28 +0100 Subject: [PATCH] --- app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index 27474bb..18e0b13 100644 --- a/app.js +++ b/app.js @@ -116,8 +116,8 @@ class Sprite { class Cannon extends Sprite { constructor(canvasCtx, note) { let sharp = [1, 3, 6, 8, 10].includes(note % 12) - //super(canvasCtx, "cannon.png", 34 * (note - FIRST_NOTE) + 66, sharp? 418:424, 11, 26, 4) - super(canvasCtx, "cannon.png", 34 * (note - FIRST_NOTE) + 66, 454 - 20*(note % 3), 11, 26, 4) + // super(canvasCtx, "cannon.png", 34 * (note - FIRST_NOTE) + 66, sharp? 418:444, 11, 26, 4) + super(canvasCtx, "cannon.png", 34 * (note - FIRST_NOTE) + 66, 454 - 20 * (note % 3), 11, 26, 4) this.note = note this.key = keyMap[note - FIRST_NOTE]?.toUpperCase() || "" this.impactHeight = 9 @@ -388,7 +388,7 @@ midiSelect.onfocus = function() { midiSelect.add(option) input.onmidimessage = null } - if(midiIputs[midiKeyboard]) midiSelect.value = midiKeyboard + if (midiIputs[midiKeyboard]) midiSelect.value = midiKeyboard } }, error => {