Skip to content

Commit

Permalink
- createGainNode => createGain
Browse files Browse the repository at this point in the history
- noteOn/Off => start/stop
  • Loading branch information
yoya committed Aug 18, 2014
1 parent e710097 commit 7bf0fd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/windchime.html
Expand Up @@ -56,13 +56,13 @@
src = this.srcQueue.shift();
gain = this.gainQueue.shift();
src.disconnect(gain);
// src.noteOff(); // XXX?????
// src.stop(); // XXX?????
gain.disconnect(context.destination);
}

src = context.createBufferSource();
rate = this.playbackRateList[i];
gain = context.createGainNode();
gain = context.createGain();
src.buffer = MusicBox.buffer; // XXX
src.playbackRate.value = rate;
// gain.gain.value = v;
Expand All @@ -72,7 +72,7 @@
// gain.gain.exponentialRampToValueAtTime(0, context.currentTime + 2);
src.connect(gain);
gain.connect(context.destination);
src.noteOn(0);
src.start(0);
this.srcQueue.push(src);
this.gainQueue.push(gain);
};
Expand Down

0 comments on commit 7bf0fd9

Please sign in to comment.