Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stephanepericat/rust-wasm-simple-synth
https://github.com/stephanepericat/rust-wasm-simple-synth
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/stephanepericat/rust-wasm-simple-synth
- Owner: stephanepericat
- License: mit
- Created: 2019-12-01T15:55:28.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T12:21:19.000Z (about 2 years ago)
- Last Synced: 2023-02-27T06:36:16.900Z (almost 2 years ago)
- Language: Rust
- Size: 1.3 MB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Synth
A simple web-based synth built with Rust / WebAssembly / WebAudio API.
## Dependencies
Make sure you have [wasm-pack](https://rustwasm.github.io/wasm-pack/) installed:
```
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
```## Usage
- Build the wasm binary `wasm-pack build`
- Install npm dependencies `cd www && npm install`
- Run the demo `npm start`
- Go to http://localhost:8080## Resources
* [`wasm-bindgen`](https://github.com/rustwasm/wasm-bindgen) for communicating
between WebAssembly and JavaScript.
* [`console_error_panic_hook`](https://github.com/rustwasm/console_error_panic_hook)
for logging panic messages to the developer console.
* [`wee_alloc`](https://github.com/rustwasm/wee_alloc), an allocator optimized
for small code size.