This commit is contained in:
Eric Rosenbaum 2016-10-19 16:40:23 -04:00
parent e45f6ed7d7
commit 66c865fe03

View file

@ -50,7 +50,6 @@ function AudioEngine (sounds) {
this.theremin = new Tone.Synth(); this.theremin = new Tone.Synth();
this.portamentoTime = 0.25; this.portamentoTime = 0.25;
this.theremin.portamento = this.portamentoTime;
this.thereminVibrato = new Tone.Vibrato(4, 0.5); this.thereminVibrato = new Tone.Vibrato(4, 0.5);
this.theremin.chain(this.thereminVibrato, this.effectsNode); this.theremin.chain(this.thereminVibrato, this.effectsNode);
this.thereminTimeout; this.thereminTimeout;
@ -89,7 +88,7 @@ AudioEngine.prototype.playNoteForBeats = function (note, beats) {
AudioEngine.prototype.playThereminForBeats = function (note, beats) { AudioEngine.prototype.playThereminForBeats = function (note, beats) {
// if the theremin is playing // if the theremin is playing
// set frequency // ramp to new frequency
// else // else
// trigger attack // trigger attack
// create a timeout for slightly longer than the duration of the block // create a timeout for slightly longer than the duration of the block