Beep.js 多媒体工具包

程序名称:Beep.js

授权协议: MIT

操作系统: 跨平台

开发语言: JavaScript

Beep.js 介绍

Beep.js 是一款使用 WebAudio API 基于浏览器的 JavaScript 工具包,用来开发声音合成应用。你可以使用它来做一个电子琴。

示例:

var trigger = new BEEP.Trigger( '2Eb', 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 )
    )
})

Beep.js 官网

https://github.com/stewdio/beep.js

相关编程语言

多功能下拉选择插件 SelectPage 简洁而强大的下拉分...
AutoComplete 是一个 jQuery Mobile 的插件,用于实...
Combogrid 是一个jQuery插件用于为输入框添加高级自...
Autobox2这个jQuery插件,可以用于创建类似于Facebo...
Link Scraper TextBox 是一个文本框的扩展插件,当你...
Awesomplete 超小超好用的超漂亮的 autocomplete 框...