JSPM

wavepot

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q41654F
  • License MIT

wavepot on the terminal

Package Exports

  • wavepot

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

Readme

wavepot-cli

wavepot on the terminal

npm install wavepot -g

Make sure you have electron installed and in your path. If you don't, npm install electron -g

Usage

$ wavepot <sourcefile>

Where <sourcefile> is a file that contains something like this:

exports.beep = t => .3 * Math.sin(t * 440 * Math.PI * 2);
exports.noise = t => .15 * Math.random() * 2 - 1;

And then, try editing the file in your favorite editor. Any changes are reflected in realtime in the audio output.

Building modules

$ wavepot -b <sourcefile>

When you pass the option --build or -b, the file will be built with browserify and babelify. Babel latest preset is used so you can use imports and any new JavaScript features. An example can be found here.

If you're looking for filters, effects and generators to install and play with, check out opendsp. Then install with npm, github style: npm install opendsp/some-module --save.

Enjoy!

License

MIT © stagas