touch-down-dance

1.0.1 • Public • Published

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 serve boot a webserver at port 3000
  • npm run build build 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)

RESOURCES

  • openmusic has a ton of helpful modules
  • if you need a basic convolver impulse, voila

Dependents (0)

Package Sidebar

Install

npm i touch-down-dance

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • coleww