wasm-bindgen/examples/webaudio
2018-09-10 17:50:34 -07:00
..
src examples(webaudio): Tidy up the webaudio example 2018-09-10 17:50:34 -07:00
.gitignore Initial example of using the WebAudio APIs from web-sys 2018-08-17 07:02:48 -04:00
build.bat Initial example of using the WebAudio APIs from web-sys 2018-08-17 07:02:48 -04:00
build.sh Fix audio example 2018-08-30 13:45:42 -07:00
Cargo.toml examples(webaudio): Tidy up the webaudio example 2018-09-10 17:50:34 -07:00
index.html examples(webaudio): Tidy up the webaudio example 2018-09-10 17:50:34 -07:00
index.js examples(webaudio): Tidy up the webaudio example 2018-09-10 17:50:34 -07:00
package.json examples(webaudio): Tidy up the webaudio example 2018-09-10 17:50:34 -07:00
README.md Initial example of using the WebAudio APIs from web-sys 2018-08-17 07:02:48 -04:00
webpack.config.js Initial example of using the WebAudio APIs from web-sys 2018-08-17 07:02:48 -04:00

Web Audio example

This directory is an example of how to use the Web Audio APIs from Rust. It creates a very simple FM (frequency modulation) synth, and let's you control the primary frequency, the modulation amount, and the modulation frequency.

To run, first install some utilities via npm:

npm install

Then build the project with either build.bat or build.sh.

Finally, run a development web server with npm run serve and then open http://localhost:8080/ in a browser!