keyboard: allow note numbers up to 127

This commit is contained in:
bordun 2021-01-09 10:17:47 +01:00
parent 420bd55e7a
commit 5f64132f56
2 changed files with 5 additions and 2 deletions

View file

@ -2,6 +2,9 @@
## next
- bug fixes
- keyboard: allow note numbers up to 127
- project tree
- add an input for filtering displayed widget by id

View file

@ -102,13 +102,13 @@ class Keyboard extends Panel {
var pattern = 'wbwbwwbwbwbw',
whiteKeys = 0, whiteKeys2 = 0, i
for (i = start; i < keys + start && i < 109; i++) {
for (i = start; i < keys + start && i < 128; i++) {
if (pattern[i % 12] == 'w') whiteKeys++
}
this.container.style.setProperty('--nkeys', whiteKeys)
for (i = start; i < keys + start && i < 109; i++) {
for (i = start; i < keys + start && i < 128; i++) {
var data = {
top: 'auto',