Skip to content

Commit

Permalink
Use name preserving reverse parsing when modifying scales
Browse files Browse the repository at this point in the history
ref #420
  • Loading branch information
frostburn committed May 3, 2023
1 parent 62502b5 commit 8bb6bd2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ import {
} from "./keyboard-mapping";
import { VirtualSynth } from "./virtual-synth";
import { Synth } from "@/synth";
import { Interval, parseLine, Scale } from "scale-workshop-core";
import {
Interval,
parseLine,
Scale,
reverseParseScale,
} from "scale-workshop-core";
// === Root props and audio ===
const rootProps = defineProps<{
Expand Down Expand Up @@ -184,7 +189,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 8bb6bd2

Please sign in to comment.