Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
inthar-raven authored Nov 29, 2023
1 parent ab8eaa0 commit d22ba5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ watch(
pingPongFeedback,
pingPongSeparation,
pingPongGain,
intervalMatrixIndexing
],
encodeState
);
Expand Down
4 changes: 2 additions & 2 deletions src/analysis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit d22ba5f

Please sign in to comment.