JSPM

tom-from-space

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q27713F
  • License MIT

tom would like to add u to their friend net

Package Exports

  • tom-from-space

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 (tom-from-space) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

tom-from-space

a rly weird tom tom. play around with different low-end freq/endFreq settings to get gnarly space tommys

USE IT

var tom = require('tom-from-space')(yrAudioContext)
tom.start(yrAudioContext.currentTime)
tom.update({freq: 420, endFreq: 666}) // pew pew
tom.start(yrAudioContext.currentTime)

SETTINGS:

other things that can be controlled through the update method:

    settings: {

      freq: 250, // peak osc freq
      endFreq: 0.000000000000000000001, // 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 ...
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