Skip to content

Commit

Permalink
Display warnings from an empty scale
Browse files Browse the repository at this point in the history
ref #666
  • Loading branch information
frostburn committed Apr 27, 2024
1 parent c92d82e commit aadf6eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Feature: Show labels, ratios, cents and frequencies on the tuning table [#534](https://github.com/xenharmonic-devs/scale-workshop/issues/534)
* Bug fix: Extreme ratios now only break parts of the tuning table that do not have IEEE floating point representation and format better when non-finite [#631](https://github.com/xenharmonic-devs/scale-workshop/issues/631), [#632](https://github.com/xenharmonic-devs/scale-workshop/issues/632)
* Style fix: Make checkbox and radio button labels more consistent [#644](https://github.com/xenharmonic-devs/scale-workshop/issues/644)
* Beta cycle issues: [#643](https://github.com/xenharmonic-devs/scale-workshop/issues/643), [#640](https://github.com/xenharmonic-devs/scale-workshop/issues/640), [#577](https://github.com/xenharmonic-devs/scale-workshop/issues/577), [#513](https://github.com/xenharmonic-devs/scale-workshop/issues/513), [#658](https://github.com/xenharmonic-devs/scale-workshop/issues/658)
* Beta cycle issues: [#643](https://github.com/xenharmonic-devs/scale-workshop/issues/643), [#640](https://github.com/xenharmonic-devs/scale-workshop/issues/640), [#577](https://github.com/xenharmonic-devs/scale-workshop/issues/577), [#513](https://github.com/xenharmonic-devs/scale-workshop/issues/513), [#658](https://github.com/xenharmonic-devs/scale-workshop/issues/658), [#664](https://github.com/xenharmonic-devs/scale-workshop/issues/664), [#666](https://github.com/xenharmonic-devs/scale-workshop/issues/666)
* Alpha cycle issues: [#574](https://github.com/xenharmonic-devs/scale-workshop/issues/574), [#579](https://github.com/xenharmonic-devs/scale-workshop/issues/579)

## 2.4.1
Expand Down
4 changes: 3 additions & 1 deletion src/stores/scale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,9 @@ export const useScaleStore = defineStore('scale', () => {
scale.value = new Scale(TET12, visitorBaseFrequency, baseMidiNote.value, name.value)
colors.value = defaultColors(baseMidiNote.value)
labels.value = defaultLabels(baseMidiNote.value, accidentalPreference.value)
warning.value = 'Empty scale defaults to 12-tone equal temperament.'
if (!warning.value) {
warning.value = 'Empty scale defaults to 12-tone equal temperament.'
}
}
const noteNumber = baseMidiNote.value
if (!warning.value && isBlackMidiNote(noteNumber) && !userDeclaredPitch) {
Expand Down

0 comments on commit aadf6eb

Please sign in to comment.