From 90e62b4313f300de1da3013a558d51f7d4c883a6 Mon Sep 17 00:00:00 2001 From: Gubolin Date: Mon, 4 Aug 2014 11:10:21 +0200 Subject: allow changing the volume of notes --- threads.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'threads.js') diff --git a/threads.js b/threads.js index 3324ac6..56ff45a 100644 --- a/threads.js +++ b/threads.js @@ -2716,10 +2716,11 @@ Process.prototype.doPlayNote = function (pitch, beats) { Process.prototype.doPlayNoteForSecs = function (pitch, secs) { // interpolated + var volume = this.homeContext.receiver.volume; if (!this.context.startTime) { this.context.startTime = Date.now(); this.context.activeNote = new Note(pitch); - this.context.activeNote.play(); + this.context.activeNote.play(volume); } if ((Date.now() - this.context.startTime) >= (secs * 1000)) { if (this.context.activeNote) { -- cgit v1.3.1