Skip to content

Commit 30f58dc

Browse files
pjryan93therewasaguy
authored andcommitted
Added Playmode 'untilDone' (#223)
* added untilDone option on soundFile * added example and doc
1 parent b1cc2ab commit 30f58dc

File tree

4 files changed

+1078
-160
lines changed

4 files changed

+1078
-160
lines changed

examples/soundfile_playMode/sketch.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ function togglePlayMode(){
2727
if (playMode == 'sustain'){
2828
playMode = 'restart';
2929
}
30+
else if (playMode == 'restart'){
31+
playMode = 'untilDone';
32+
}
3033
else {
3134
playMode = 'sustain';
3235
}

0 commit comments

Comments
 (0)