【文件属性】:
文件名称:drumsynth:带有 Elementary 的 JavaScript 鼓合成库
文件大小:19KB
文件格式:ZIP
更新时间:2021-07-24 20:41:11
JavaScript
鼓合成器
小型鼓合成库。
安装
$ npm install @nick-thompson/drumsynth
用法
const core = require ( 'elementary-core' ) ;
const el = require ( '@nick-thompson/elementary' ) ;
const ds = require ( '@nick-thompson/drumsynth' ) ;
// The simplest example: a kick, hat, and clap playing on every step of a
// pulse train running at 4Hz.
core . on ( 'load' , function ( ) {
let gate = el . train ( 4 ) ;
core . render (
【文件预览】:
drumsynth-master
----kick.js(2KB)
----hat.js(2KB)
----index.js(231B)
----package.json(410B)
----package-lock.json(39KB)
----examples()
--------stepseq.js(2KB)
----LICENSE.md(1KB)
----.gitignore(2KB)
----README.md(4KB)
----clap.js(1KB)