Implemented note display

This commit is contained in:
krippix 2023-06-04 23:32:08 +02:00
parent 4fb4a58a1d
commit f46710ef6c
4 changed files with 112 additions and 6 deletions

View file

@ -1,7 +1,8 @@
// prepare svg object for later use
var keyboard = document.getElementById("piano");
var svgDoc; // loaded keyboard svg
var keysB = [2,5,7,10,12,14,17,19,22,24,26,29,31,34,36,38,41,43,46,48,50,53,55,58,60,62,65,67,70,72,74,77,79,82,84,86]
const keysB = [2,5,7,10,12,14,17,19,22,24,26,29,31,34,36,38,41,43,46,48,50,53,55,58,60,62,65,67,70,72,74,77,79,82,84,86]
const keyTo = {}
window.addEventListener("load", function() {
svgDoc = keyboard.contentDocument;