Skip to content

Commit 195b7f7

Browse files
committed
Fix missing state resets in initTurtle for ratio transposition and intervals
Signed-off-by: Ady0333 <adityashinde1525@gmail.com>
1 parent 5a34c5b commit 195b7f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/turtle.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ class Turtle {
199199
this.singer.scalarTranspositionValues = [];
200200
this.singer.transposition = 0;
201201
this.singer.transpositionValues = [];
202+
this.singer.transpositionRatios = [];
202203

203204
this.singer.register = 0;
204205
this.singer.beatFactor = 1;
@@ -245,6 +246,8 @@ class Turtle {
245246
this.singer.crescendoInitialVolume = { DEFAULTVOICE: [DEFAULTVOLUME] };
246247
this.singer.intervals = [];
247248
this.singer.semitoneIntervals = [];
249+
this.singer.chordIntervals = [];
250+
this.singer.ratioIntervals = [];
248251
this.singer.staccato = [];
249252
this.singer.glide = [];
250253
this.singer.glideOverride = 0;

0 commit comments

Comments
 (0)