Playify

August 5, 2021
website

Playify was a guitar-learning prototype. A Rust library compiled to WebAssembly analyzed microphone audio using an FFT followed by the harmonic product spectrum technique. An SVG renderer updated the guitar tablature in the browser.

cargo new --lib add_numbers
cd add_numbers
Open the src/lib.rs file and replace its contents with the following Rust code:
#[no_mangle]
pub extern "C" fn add_numbers(a: i32, b: i32) -> i32 {
    a + b
}
cargo build --target wasm32-unknown-unknown
wasm2wat target/wasm32-unknown-unknown/debug/add_numbers.wasm -o add_numbers.wat

Screenshot

Screenshot