diff options
| author | Gubolin <gubolin@fantasymail.de> | 2014-08-04 12:17:32 +0200 |
|---|---|---|
| committer | Gubolin <gubolin@fantasymail.de> | 2014-08-04 12:17:32 +0200 |
| commit | 5a485b466779e26259323173f453275bece79713 (patch) | |
| tree | b45b40161261ee2d21db80dfa4d6f23ac8253195 /threads.js | |
| parent | 90e62b4313f300de1da3013a558d51f7d4c883a6 (diff) | |
| download | snap-5a485b466779e26259323173f453275bece79713.tar.gz snap-5a485b466779e26259323173f453275bece79713.zip | |
mute notes
Diffstat (limited to 'threads.js')
| -rw-r--r-- | threads.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |
