Package

purescript-ocarina

Repository
mikesol/purescript-ocarina
License
Apache-2.0 AND ISC
Uploaded by
pacchettibotti
Published on
2023-04-19T01:40:20Z

A library for web-based interactive audio and audio gaming.

Documentation

Ocarina's documentation is online here and the source in this repository.

For a simple example of ocarina with minimal boilerplate, check out the hello-world.

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 Ocarina.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.Animate
FRP.Event.MIDI
Ocarina.Clock
Ocarina.Common
Ocarina.Control
Ocarina.Core
Ocarina.Interpret
Ocarina.Math
Ocarina.Properties
Ocarina.Run
Ocarina.WebAPI
Row.Extra
Dependencies