Skip to content

Commit

Permalink
Merge pull request #431 from xenharmonic-devs/fix-reverse-parsing
Browse files Browse the repository at this point in the history
Use name preserving reverse parsing when modifying scales
  • Loading branch information
frostburn authored Nov 26, 2023
2 parents caebfe0 + 6bef377 commit 78483c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import {
parseLine,
Scale,
type IntervalOptions,
reverseParseScale,
} from "scale-workshop-core";
// === Root props and audio ===
Expand Down Expand Up @@ -190,7 +191,7 @@ function updateFromScaleLines(lines: string[]) {
function updateFromScale(surrogate: Scale) {
scale.intervals = surrogate.intervals;
scale.equave = surrogate.equave;
scaleLines.value = scale.toStrings();
scaleLines.value = reverseParseScale(scale);
}
// == URL path handling ==
Expand Down

0 comments on commit 78483c2

Please sign in to comment.