From b3f0fb0e2b68dc9ba4dcc50c000f6471ec7c74b1 Mon Sep 17 00:00:00 2001 From: Lumi Pakkanen Date: Wed, 3 May 2023 10:36:48 +0300 Subject: [PATCH] Always show accurate information in the interval matrix ref #412 --- src/views/AnalysisView.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/AnalysisView.vue b/src/views/AnalysisView.vue index 9951bb67..d756d9c3 100644 --- a/src/views/AnalysisView.vue +++ b/src/views/AnalysisView.vue @@ -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; @@ -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(() => {