Skip to content
 
 

Repository files navigation

purescript-wags

PureScript Web Audio Graphs as a Stream.

Main idea

This library is comprised of two parts.

  1. An API for creating streams of web audio graphs.
  2. An API for rendering the streams to web audio.

Examples

There are some other examples to get you started:

The examples also show how to use purescript-wags in a Halogen app.

In the wild

The blog Soundly functional is powered by wags, as is the wagsi project.

Bundling on your site

To see how to bundle this library on your site, please visit the examples directory.

To compile the JS for the hello world example, issue the following command:

npx spago -x examples.dhall bundle-app \
  --main WAGS.Example.HelloWorld \
  --to examples/hello-world/index.js

Other examples will work the same way, with the directory and module name changing. Then, to access the example, you can run a http server from the directory and navigate to the url, ie cd examples/hello-world && python -m http.server and then navigate to localhost:8000.

About

Web audio graphs as a stream

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages