0.1.0 • Published 3 years ago

music-analyzer-wasm-rs v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

About

Routines for music analysis written in Rust packages into WebAssembly.

🚴 Usage

🛠️ Build with wasm-pack build

wasm-pack build --target web

Note: --target web provides necessary glue code in the generated .js for easy consumtion by an AudioWorklet. Omit if this is to be consumed from a regular Javascript module.

🔬 Test in Headless Browsers with wasm-pack test

wasm-pack test --headless --firefox

🎁 Publish to NPM with wasm-pack publish

wasm-pack publish --target web

🔋 Batteries Included

  • wasm-bindgen for communicating between WebAssembly and JavaScript.
  • console_error_panic_hook for logging panic messages to the developer console.
  • wee_alloc, an allocator optimized for small code size.
  • cqt for applying a cqt transform to calculate pitches present in an audio sample.