多媒体工具包 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://www.codercto.com/soft/d/22233.html

看见未来

看见未来

余晨 / 浙江大学出版社 / 2015-4-15 / 59.00元

【内容简介】 这是互联网群星闪耀的时代,巨人们用最尖端的技术和自成体系的哲学改变着我们的生活,甚至影响了整个世界和人类的历史进程。在这个时代,没有人可以避开互联网的渗透。互联网早已不是简单的技术变革,人们正试图赋予其精神和内涵,以期互联网能更好地为人类所用。 本书中作者 面对面地采访了包括马克·扎克伯格、埃隆·马斯克、杨致远、凯文·凯利、克里斯·安德森、罗伯特·希勒、迈克尔·莫瑞茨、凯......一起来看看 《看见未来》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

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

多种字符组合密码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码