summaryrefslogtreecommitdiff
path: root/threads.js
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2014-08-04 12:17:32 +0200
committerGubolin <gubolin@fantasymail.de>2014-08-04 12:17:32 +0200
commit5a485b466779e26259323173f453275bece79713 (patch)
treeb45b40161261ee2d21db80dfa4d6f23ac8253195 /threads.js
parent90e62b4313f300de1da3013a558d51f7d4c883a6 (diff)
downloadsnap-5a485b466779e26259323173f453275bece79713.tar.gz
snap-5a485b466779e26259323173f453275bece79713.zip
mute notes
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);