Fix stepjoin (#1067)

* sort fractions properly - fixes #1066
This commit is contained in:
Alex McLean 2024-04-23 22:37:21 +01:00 committed by GitHub
parent 6a1fa7e67f
commit a189626e8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 16 additions and 5 deletions

View file

@ -43,7 +43,7 @@ export class Pattern {
constructor(query, tactus = undefined) {
this.query = query;
this._Pattern = true; // this property is used to detect if a pattern that fails instanceof Pattern is an instance of another Pattern
this.__tactus = tactus; // in terms of number of beats per cycle
this.__tactus = Fraction(tactus); // in terms of number of steps per cycle
}
get tactus() {