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 56ff45a..5347110 100644
--- a/threads.js
+++ b/threads.js
@@ -2717,6 +2717,12 @@ Process.prototype.doPlayNote = function (pitch, beats) {
Process.prototype.doPlayNoteForSecs = function (pitch, secs) {
// interpolated
var volume = this.homeContext.receiver.volume;
+ var muted = this.homeContext.receiver.parentThatIsA(StageMorph).muted;
+
+ if (muted === true) {
+ volume = 0;
+ }
+
if (!this.context.startTime) {
this.context.startTime = Date.now();
this.context.activeNote = new Note(pitch);