Skip to content

Commit

Permalink
Merge pull request #433 from xenharmonic-devs/fix-interval-matrix
Browse files Browse the repository at this point in the history
Always show accurate information in the interval matrix
  • Loading branch information
frostburn authored Nov 26, 2023
2 parents 697735d + b3f0fb0 commit a6692fb
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 a6692fb

Please sign in to comment.