Package

purescript-wags

Repository
mikesol/purescript-wags
License
Apache-2.0
Uploaded by
mikesol
Published on
2021-06-30T13:06:38Z

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.

There are some other examples to get you started:

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

Documentation

Module documentation is published on Pursuit.

As the Pursuit documentation is quite volumnous, there's also a cheat sheet that you can use 💯.

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:

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.

Modules
FRP.Event.MIDI
WAGS.Change
WAGS.Change.Optionals
WAGS.Comonad
WAGS.Connect
WAGS.Control.Functions
WAGS.Control.Functions.Validated
WAGS.Control.Indexed
WAGS.Control.Types
WAGS.Create
WAGS.Create.Optionals
WAGS.CreateT
WAGS.Debug
WAGS.Destroy
WAGS.Disconnect
WAGS.Edgeable
WAGS.Graph.AudioUnit
WAGS.Graph.Edge
WAGS.Graph.Graph
WAGS.Graph.Node
WAGS.Graph.Oversample
WAGS.Graph.Paramable
WAGS.Graph.Parameter
WAGS.Interpret
WAGS.Math
WAGS.Patch
WAGS.Rendered
WAGS.Run
WAGS.Util
WAGS.Validation
Dependencies