diff --git a/src/App.vue b/src/App.vue index cb489218..c4be98b2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -84,12 +84,7 @@ function midiNoteOn(index: number, rawAttack?: number, channel?: number) { rawAttack = 80 } - let frequency = scale.frequencies[index] - - // if index out of range calculate frequency directly - if (index < 0 || index > 127) { - frequency = scale.getFrequency(index) - } + let frequency = scale.getFrequency[index] if (!midi.velocityOn) { rawAttack = 80 diff --git a/src/assets/main.css b/src/assets/main.css index 01d361c1..50f4a656 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -139,19 +139,21 @@ ul.btn-group { } .control.checkbox-container { flex-flow: unset; - gap: 0.15rem 1rem; } .control.checkbox-container label { font-weight: normal; } +.control.checkbox-group { + flex-flow: unset; + gap: 0.15rem 1rem; +} .control.radio-group { gap: 0.15rem 1rem; } .control.radio-group span label { font-weight: unset; } -.control.select-group { - flex-flow: unset; +.control.dropdown-group { gap: 0.15rem 1rem; } diff --git a/src/views/MidiView.vue b/src/views/MidiView.vue index 68e5cbc9..c6c30997 100644 --- a/src/views/MidiView.vue +++ b/src/views/MidiView.vue @@ -178,7 +178,7 @@ onUnmounted(() => { /> -