From dce6e2d1901bf93be91c430199ebcac7bc919d88 Mon Sep 17 00:00:00 2001 From: Lumi Pakkanen Date: Fri, 7 Jun 2024 10:43:39 +0300 Subject: [PATCH] Fix filtering bounds to prevent equave duplication --- src/scale.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scale.ts b/src/scale.ts index 00a06ff..a7a072f 100644 --- a/src/scale.ts +++ b/src/scale.ts @@ -755,7 +755,7 @@ export class Scale { const unison = this.equave.zeroed(); const intervals = this.intervals.filter( interval => - interval.compare(unison) >= 0 && interval.compare(this.equave) <= 0 + interval.compare(unison) >= 0 && interval.compare(this.equave) < 0 ); return this.variant(intervals); }