Skip to content

Commit a66aa0e

Browse files
Merge branch 'main' into adding-tests-for-covered-files
2 parents 275adc5 + 46f87e4 commit a66aa0e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/looper.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,9 @@ class Score {
392392
var thisScore = this;
393393
for (var i in arguments) {
394394
this.parts[i] = arguments[i];
395-
if (i > 0) this.parts[i - 1].nextPart = this.parts[i];
395+
if (i > 0) {
396+
this.parts[i - 1].nextPart = this.parts[i];
397+
}
396398
this.parts[i].onended = function () {
397399
thisScore.resetPart(i);
398400
playNextPart(thisScore);

src/polysynth.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ class PolySynth {
388388
delete this.notes[n];
389389
}
390390
this._newest = 0;
391+
this._oldest = 0;
391392
return;
392393
}
393394

0 commit comments

Comments
 (0)