JQuery piano plugin
More information about this can be found in this blog article.
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 |
Event | Params | Description |
---|---|---|
onClick | index, frequency | Index and frequency clicked key |