纯js带音符显示功能的网页电子琴插件
A JavaScript toolkit for building browser-based synthesizers
jQuery之家
返回下载页
beep
new BEEP.Instrument() // Uncomment out below for more fun. /* new BEEP.Instrument( function(){ // Let’s call this our “Foundation Voice” // because it will sing the intended Note. this.voices.push( new BEEP.Voice( this.note, this.audioContext ) .setOscillatorType( 'sine' ) .setGainHigh( 0.4 ) ) // This Voice will sing a Perfect 5th above the Foundation Voice. this.voices.push( new BEEP.Voice( this.note.hertz * 3 / 2, this.audioContext ) .setOscillatorType( 'triangle' ) .setGainHigh( 0.1 ) ) // This Voice will sing 2 octaves above the Foundation Voice. this.voices.push( new BEEP.Voice( this.note.hertz * 4, this.audioContext ) .setOscillatorType( 'sawtooth' ) .setGainHigh( 0.01 ) ) // This Voice will sing 1 octave below the Foundation Voice. this.voices.push( new BEEP.Voice( this.note.hertz / 2, this.audioContext ) .setOscillatorType( 'square' ) .setGainHigh( 0.01 ) ) }) .domContainer.classList.add('rainbow') */