mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2024-12-22 22:12:48 -05:00
cleanup
This commit is contained in:
parent
e45f6ed7d7
commit
66c865fe03
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue