From 052f4d9ea6531291a7be1db86d5fa3a58a44e56d Mon Sep 17 00:00:00 2001 From: Nathan Aclander Date: Sun, 1 Nov 2020 21:36:24 -0800 Subject: [PATCH] Match Piano/Marimba hands to direction on keyboard Left click ( and A ) plays the left bongo, Right click ( and D ) plays the right bongo. It is therefore logical that the keyboard keys 1-5, and Q-T play the left Piano and Marimba keys respectively, and that the keyboard keys 6-0 and Y-P play the right Piano and Marimba keys respectively. This patch fixes this visual bug and soothes my OCD. --- js/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/core.js b/js/core.js index 0c95449..97e7038 100644 --- a/js/core.js +++ b/js/core.js @@ -185,7 +185,7 @@ $.wait = function(callback, ms) { $.play = function(instrument, key, state) { var instrumentName = Object.keys(InstrumentEnum).find(k => InstrumentEnum[k] === instrument).toLowerCase(); var commonKey = KeyEnum[key]; - var id = "#" + (instrument == InstrumentEnum.MEOW ? "mouth" : "paw-" + ((instrument == InstrumentEnum.BONGO ? commonKey : commonKey <= 5 && commonKey != 0 ? 0 : 1) == 0 ? "left" : "right")); + var id = "#" + (instrument == InstrumentEnum.MEOW ? "mouth" : "paw-" + ((instrument == InstrumentEnum.BONGO ? commonKey : commonKey <= 5 && commonKey != 0 ? 1 : 0) == 0 ? "left" : "right")); if (state == true) { if (jQuery.inArray(commonKey, pressed) !== -1) { return;