/purescript-webaudio

A PureScript wrapper around the HTML5 Web Audio API

Primary LanguagePureScriptMIT LicenseMIT

purescript-webaudio

Latest release Build status

This library provides PureScript wrappers for the HTML5 Web Audio API

Installation

$ spago build OR bower install followed by pulp build

Documentation

Module documentation is published on Pursuit

Examples

To build the examples perform the following scripts in order:

  1. npm run spago:build:example:xx where xx is the example (squareWave, gain, decode, decodeAsync)

To run the examples in your browser, perform the following scripts in order:

  1. npm run exec:example:xx where xx is the example (squareWave, gain, decode, decodeAsync)

Note: The resolutions in the bower.json file (e.g., "purescript-typelevel") are required to compile and run "squareWave". These versions don't appear to conflict with the purescript-webaudio libary.

Tests

To build the test suite

  1. npm run spago:build:test:props

To run the test suite

  1. npm run exec:test:props and inspect the output log