Import packages/edo into strudel

This commit is contained in:
robmckinnon 2025-06-28 19:13:41 +01:00 committed by robmckinnon
parent 73965a3a39
commit 43293dc80f
15 changed files with 179 additions and 2 deletions

View file

@ -76,7 +76,7 @@ export class Pitches {
const higherOcatve = deg > this.scale.length;
const octave = this.root_octave + (higherOcatve ? Math.floor((deg - 1) / this.scale.length) : 0);
const degree = higherOcatve ? (deg % this.scale.length === 0 ? this.scale.length : deg % this.scale.length) : deg;
console.log([octave, degree]);
// console.log([octave, degree]);
return [octave, degree];
}