beep
beep.js editor
window.synth = new Beep.Instrument() /* .applyVoices( function(){ this.voices.push( new Beep.Voice( this.note, this.audioContext ) .setOscillatorType( 'sine' ) .setGainHigh( 0.50 ), new Beep.Voice( this.note.hertz * 3 / 2, this.audioContext ) .setOscillatorType( 'triangle' ) .setGainHigh( 0.20 ), new Beep.Voice( this.note.hertz * 4, this.audioContext ) .setOscillatorType( 'sawtooth' ) .setGainHigh( 0.01 ), new Beep.Voice( this.note.hertz / 2, this.audioContext ) .setOscillatorType( 'square' ) .setGainHigh( 0.01 ) ) }) .addStyleClass( 'rainbow' ) .scorePlay() */