package
Create beats from ascii drum machine tracks with the web audio api.
npm install beatsjsGitHub-flavored package documentation.
Across all versions, last 30 days.
58 in 30 days
Runtime metadata.
Tagged topics.
beatsjs is an api for creating beats in JavaScript with the Web Audio API.
This is super early days so the api is basically non-existent but w/e.
There is an example in the /example directory. To set it up, do this!
npm install
npm run-script build
npm install -g serve # web server
serve .Go to http://localhost:3000/example/index.html in your browser, and drop the beat.
Try pasting in one of these patterns:
bd| bd -- -- -- -- -- -- -- | bd -- bd -- -- -- -- -- | bd -- -- -- -- -- -- -- | bd -- bd -- -- -- -- -- |
sn| -- -- -- -- sn -- -- -- | -- -- -- -- sn -- -- -- | -- -- -- -- sn -- -- -- | -- -- -- -- sn -- -- -- |bd| bd bd -- -- bd bd -- -- bd bd -- -- bd bd -- --
sn| -- -- sn -- -- -- sn -- -- -- sn -- -- -- sn --
hh| hh hh hh hh hh hh hh hh hh hh hh hh hh hh hh hh
bd| bd -- -- -- bd bd -- -- bd -- -- -- bd bd -- --
sn| -- -- sn -- -- -- sn -- -- -- sn -- -- -- sn --
hh| -- hh hh -- -- hh hh -- -- hh hh -- -- hh hh --
bd| bd -- -- -- -- -- -- -- bd -- bd -- -- -- -- -- bd -- -- -- -- -- -- -- bd -- bd -- -- -- -- --
sn| -- -- -- -- sn -- -- -- -- -- -- -- sn -- -- -- -- -- -- -- sn -- -- -- -- -- -- -- sn -- -- --
hh| -- -- hh hh -- -- -- -- -- -- hh hh -- -- -- -- -- -- hh hh -- -- -- -- -- -- hh hh -- -- -- --