Skip to content

Commit

Permalink
Always show accurate information in the interval matrix
Browse files Browse the repository at this point in the history
ref #412
  • Loading branch information
frostburn committed May 3, 2023
1 parent 62502b5 commit d0e7364
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/views/AnalysisView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ import { intervalMatrix } from "@/analysis";
import type { VirtualSynth } from "@/virtual-synth";
import ChordWheel from "@/components/ChordWheel.vue";
import { computed, ref } from "vue";
import type { Interval, IntervalOptions, Scale } from "scale-workshop-core";
import {
reverseParseInterval,
type Interval,
type IntervalOptions,
type Scale,
} from "scale-workshop-core";
const MAX_SCALE_SIZE = 100;
Expand Down Expand Up @@ -73,7 +78,8 @@ function formatMatrixCell(interval: Interval) {
return interval.centsString();
}
// If we're here the name should faithfully represent the interval.
return interval.name;
// Reverse parsing takes care of obscure corner cases.
return reverseParseInterval(interval);
}
const matrix = computed(() => {
Expand Down

0 comments on commit d0e7364

Please sign in to comment.