keyboard: allow note numbers up to 127
This commit is contained in:
parent
420bd55e7a
commit
5f64132f56
2 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue