wasm-bindgen/examples/webaudio
2018-08-17 07:02:48 -04:00
..
src Initial example of using the WebAudio APIs from web-sys 2018-08-17 07:02:48 -04: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 Initial example of using the WebAudio APIs from web-sys 2018-08-17 07:02:48 -04:00
Cargo.toml Initial example of using the WebAudio APIs from web-sys 2018-08-17 07:02:48 -04:00
index.html Initial example of using the WebAudio APIs from web-sys 2018-08-17 07:02:48 -04:00
index.js Initial example of using the WebAudio APIs from web-sys 2018-08-17 07:02:48 -04:00
package.json Initial example of using the WebAudio APIs from web-sys 2018-08-17 07:02:48 -04: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!