项目作者: Thibor

项目描述 :
JQuery piano plugin
高级语言: JavaScript
项目地址: git://github.com/Thibor/jsRapPiano.git
创建时间: 2018-09-07T06:28:52Z
项目社区:https://github.com/Thibor/jsRapPiano

开源协议:The Unlicense

下载


jsRapPiano

JQuery piano plugin

Try it out here demo1 demo2.

More information about this can be found in this blog article.

Settings

Option Type Default Description
octave int 3 Number first octave
octaves int 2 Count octaves
tuning int 440 Now 440 Hz is the standar, in past it was 432 Hz
waveType string square Type of sound wave
envelope object {attack: 0.05,decay: 0.1,sustain: 0.1,release: 0.5,level: 0.5} Customize shape of sound wave

Events

Event Params Description
onClick index, frequency Index and frequency clicked key