-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Steps can be increamented with - Semitone, Tone, Octave. According to choice of user #822
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ import { ref } from 'vue' | |
import ScaleRule from './ScaleRule.vue' | ||
import palette from '@/character-palette.json' | ||
|
||
const stepx = ref("1") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Uninformative variable name. What is it associated with? |
||
|
||
const scale = useScaleStore() | ||
|
||
const updateScale = debounce(scale.computeScale) | ||
|
@@ -53,13 +55,24 @@ defineExpose({ focus, clearPaletteInfo }) | |
<input | ||
id="base-midi-note" | ||
type="number" | ||
step="1" | ||
:step="stepx" | ||
v-model="scale.baseMidiNote" | ||
@input="updateScale()" | ||
/> | ||
<span class="midi-name">{{ | ||
midiNoteNumberToName(scale.baseMidiNote, -1, scale.accidentalPreference) | ||
}}</span> | ||
midiNoteNumberToName(scale.baseMidiNote, -1, scale.accidentalPreference) | ||
}}</span> | ||
|
||
<span> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's been a while since I've programmed Vue, but it's something along the lines of adding the new preference, |
||
<label for="select-step">Step : </label> | ||
<select id = "select-step" v-model="stepx"> | ||
<option value = "1">Semitone</option> | ||
<option value = "2">Tone </option> | ||
<option value = "12">Octave</option> | ||
</select> | ||
|
||
</span> | ||
|
||
</div> | ||
|
||
<div class="control"> | ||
|
@@ -165,8 +178,8 @@ defineExpose({ focus, clearPaletteInfo }) | |
<style scoped> | ||
.midi-name { | ||
width: 1em; | ||
margin-left: 0.4em; | ||
margin-right: 0.4em; | ||
margin-left: 0.5em; | ||
margin-right: 1em; | ||
} | ||
.info { | ||
height: 3em; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary change. If only one value is included, that value is used for both dimensions.