From d22ba5f7b42933527e474effd5ea6c5a8c90a329 Mon Sep 17 00:00:00 2001 From: inthar-raven <36112167+inthar-raven@users.noreply.github.com> Date: Tue, 28 Nov 2023 23:29:30 -0500 Subject: [PATCH] Add files via upload --- src/App.vue | 1 - src/analysis.ts | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index cb6d2b8f..0a6a43ee 100644 --- a/src/App.vue +++ b/src/App.vue @@ -289,7 +289,6 @@ watch( pingPongFeedback, pingPongSeparation, pingPongGain, - intervalMatrixIndexing ], encodeState ); diff --git a/src/analysis.ts b/src/analysis.ts index d43de5bb..9492fff9 100644 --- a/src/analysis.ts +++ b/src/analysis.ts @@ -105,10 +105,10 @@ export function utonalFundamental(frequencies: number[], maxDivisor = 23) { // Interval matrix a.k.a the modes of a scale export function intervalMatrix(scale: Scale, startIndex: number) { const result = []; - const degrees = [...Array(scale.size + 1 - startIndex).keys()]; + const columns = [...Array(scale.size + 1 - startIndex).keys()]; for (let i = 0; i < scale.size; ++i) { const mode = scale.rotate(i); - result.push(degrees.map((j) => mode.getInterval(j + startIndex))); + result.push(columns.map((j) => mode.getInterval(j + startIndex))); } return result; }