From 706e1f6e474ebbc72b17f2c6a95028022fa529a3 Mon Sep 17 00:00:00 2001 From: "soham.mirikar" Date: Fri, 8 Nov 2024 21:31:43 +0530 Subject: [PATCH] added three types of increment support --- src/assets/main.css | 2 +- src/components/ScaleControls.vue | 23 ++++++++++++++++++----- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/src/assets/main.css b/src/assets/main.css index 3c75d07b..f7d4ba83 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -126,7 +126,7 @@ ul.btn-group { display: flex; flex-flow: row wrap; align-items: stretch; - gap: 0.15rem; + gap: 0.15rem 0.15rem; } .control-group h2 { margin-bottom: unset; diff --git a/src/components/ScaleControls.vue b/src/components/ScaleControls.vue index cdf1cbda..bbeed88f 100644 --- a/src/components/ScaleControls.vue +++ b/src/components/ScaleControls.vue @@ -5,6 +5,8 @@ import { ref } from 'vue' import ScaleRule from './ScaleRule.vue' import palette from '@/character-palette.json' +const stepx = ref("1") + const scale = useScaleStore() const updateScale = debounce(scale.computeScale) @@ -53,13 +55,24 @@ defineExpose({ focus, clearPaletteInfo }) {{ - midiNoteNumberToName(scale.baseMidiNote, -1, scale.accidentalPreference) - }} + midiNoteNumberToName(scale.baseMidiNote, -1, scale.accidentalPreference) + }} + + + + + + +
@@ -165,8 +178,8 @@ defineExpose({ focus, clearPaletteInfo })