wasm-bindgen/examples/webaudio
Alex Crichton 92b7de3d3d Skip args in overloaded method names if all same
This commit updates how we name overloaded methods. Previously all argument
names were concatenated, but after this commit it only concatenates argument
names where at least one possibility has a different type. Otherwise if all
possibilities have the same type name it in theory isn't adding too much more
information!

Additionally this commit also switches to using `_with_` consistently everywhere
instead of `_with_` for constructors and `_using_` for methods.

Closes #712
2018-08-20 10:30:02 -07:00
..
src Skip args in overloaded method names if all same 2018-08-20 10:30:02 -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 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!