Socket
Socket
Sign inDemoInstall

a-whining-capitalist

Package Overview
Dependencies
3
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    a-whining-capitalist

WAH WAH WAH WAH WAH


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
79.3 kB
Created
Weekly downloads
 

Readme

Source

A WHINING CAPITALIST PIG SYNTH

twinkly bell thing

WIKI

npm install a-whining-capitalist

USE

window.AudioContext = window.AudioContext || window.webkitAudioContext
var ac = new AudioContext()
var capitalism = require('a-whining-capitalist')(ac)
capitalism.connect(ac.destination)

// set the frequency/ADSR
capitalism.update({midiNote: 72, attack: 0.3, decay: 0.1, sustain: 0.3, release: 0.5, peak: 0.3, mid: 0.1, end: 0.000001, lfoL: 0.3, lfoR: 0.6})
// and trigger it!
capitalism.start(ac.currentTime)


// destroy the oscillators completely. u probably would only wanna do this for garbage collection porpoises.
capitalism.stop(ac.currentTime)


// this will return an object containing all the nodes in the a-whining-capitalist audioGraph, for closer-to-the-metal manipulation than the update/start methods provide.
capitalism.nodes()


# DEVELOPMENT

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](https://github.com/wham-js/web-audio-advent-calendar/blob/master/package.json#L8), i wanted to keep things "light")
- open `http://localhost:3000/` in a web browser and hear the magic (hopefully)

# RESOURCES


- [openmusic](https://github.com/openmusic) has a ton of helpful modules
- if you need a basic convolver impulse, [voila](https://github.com/mdn/voice-change-o-matic/tree/gh-pages/audio)

Keywords

FAQs

Last updated on 21 Dec 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc