Package Exports
- touch-down-dance
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (touch-down-dance) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
touch-down-dance
a lil kicker synthesizer, inspired by Synthesising Drum Sounds with the Web Audio API by Chris Lowis
USE IT
var tdd = require('touch-down-dance')(yrAudioContext)
tdd.start(yrAudioContext.currentTime)
tdd.update({freq: 220}) // why not have yr kick drum follow the bass? IDK? Y NOT?
tdd.start(yrAudioContext.currentTime)SETTINGS:
other things that can be controlled through the update method:
settings: {
freq: 100, // peak osc freq
endFreq: 30, // the end freq. idk why web audio hates 0.0 :/
// SETTINGS for a-d-s-r module:
attack: 0.000000000000000000001,
decay: 0.000000000000000000001,
sustain: 0.12,
release: 0.13,
peak: 0.5,
mid: 0.35,
end: 0.000000000000000000001
}For everything else, just call nodes() on yr synth object to do more close to the metal manipulations
DEVELOPMENT
git clone https://github.com/wham-js/web-audio-synth-template.git
cd web-audio-synth-template
npm install
npm run test # should pass! Yay!HEAR THE MAGIC!
npm run serveboot a webserver at port 3000npm run buildbuild demo.js to a bundle. Run this after making any changes to hear updates (or add watchify, i wanted to keep things "light")- open
http://localhost:3000/in a web browser and hear the magic (hopefully)