Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikesol/purescript-ocarina
Web audio graphs as a stream
https://github.com/mikesol/purescript-ocarina
functional-programming purescript web-audio
Last synced: 19 days ago
JSON representation
Web audio graphs as a stream
- Host: GitHub
- URL: https://github.com/mikesol/purescript-ocarina
- Owner: mikesol
- License: apache-2.0
- Created: 2021-03-25T12:19:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-24T02:29:28.000Z (7 months ago)
- Last Synced: 2024-05-02T05:56:41.473Z (7 months ago)
- Topics: functional-programming, purescript, web-audio
- Language: PureScript
- Homepage:
- Size: 4.45 MB
- Stars: 58
- Watchers: 2
- Forks: 4
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# purescript-ocarina
A library for web-based interactive audio and audio gaming.
## Documentation
Ocarina's documentation is [here](./examples/docs/).
For a simple example of `ocarina` with minimal boilerplate, check out the [`hello-world`](./examples/hello-world/HelloWorld.purs).
## Bundling on your site
To see how to bundle this library on your site, please visit the [examples](./examples) directory.
To compile the JS for the hello world example, issue the following command:
```bash
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.