多媒体工具包 Beep.js

码农软件 · 软件分类 · jQuery多媒体插件 · 2019-12-29 19:13:45

软件介绍

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 )
    )
})

本文地址:https://codercto.com/soft/d/22233.html

Practical Vim, Second Edition

Practical Vim, Second Edition

Drew Neil / The Pragmatic Bookshelf / 2015-10-31 / USD 29.00

Vim is a fast and efficient text editor that will make you a faster and more efficient developer. It’s available on almost every OS, and if you master the techniques in this book, you’ll never need an......一起来看看 《Practical Vim, Second Edition》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

在线进制转换器
在线进制转换器

各进制数互转换器

随机密码生成器
随机密码生成器

多种字符组合密码