a web component for round pianos
<script src=".../all-around-keyboard.min.js"></script>
<all-around-keyboard></all-around-keyboard>
You can also customize the keyboard with the following attributes:
<all-around-keyboard notes-in-octave=12
raised-notes="[2,4,7,9,11]"
sweep=270 octaves=2
depth=100 width=500
overlapping=0.75 >
</all-around-keyboard>
// select the keyboard
let kb = document.querySelector('all-around-keyboard');
kb.keysPress([2,6,9,11,18])
setTimeout(() => { kb.keysRelease([2,6,9,11,18]) }, 4000);
kb.keysLight([2,6,9,11,18])
setTimeout(() => { kb.keysDim([2,6,9,11,18]) }, 4000);
kb.notesLight([2,4,6,7,9,11,1])
setTimeout(() => { kb.notesDim([2,4,6,7,9,11,1]) }, 4000);