Import packages/edo into strudel
This commit is contained in:
parent
73965a3a39
commit
43293dc80f
15 changed files with 179 additions and 2 deletions
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue