summaryrefslogtreecommitdiff
path: root/threads.js
diff options
context:
space:
mode:
Diffstat (limited to 'threads.js')
-rw-r--r--threads.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/threads.js b/threads.js
index 354d002..7e87614 100644
--- a/threads.js
+++ b/threads.js
@@ -418,11 +418,17 @@ Process.prototype.pause = function () {
if (this.context && this.context.startTime) {
this.pauseOffset = Date.now() - this.context.startTime;
}
+ if (this.context.activeNote) {
+ this.context.activeNote.stop();
+ }
};
Process.prototype.resume = function () {
this.isPaused = false;
this.pauseOffset = null;
+ if (this.context.activeNote) {
+ this.context.activeNote.play();
+ }
};
Process.prototype.pauseStep = function () {