/sfizz-webaudio

sfizz as a WebAudio library

Primary LanguageJavaScriptMIT LicenseMIT

sfizz WebAudio/WebMidi demo

Live demo (requires Chrome or one of its derivatives): https://sfz.tools/sfizz-webaudio/

This repository contains a HTML/Javascript/WebAssembly front-end for sfizz, which allows prototyping of virtual instruments in the SFZ format. Right now only generators and embedded sample files are supported. This uses the emscripten branch off my sfizz's fork, available here. Compared the main sfizz branch, the background loader is deactivated and all files are loaded in memory (since WebAssembly through browsers only allows access to a virtual file system).

Building

This assumes you have the emsdk installed and activated.

mkdir build
cd build
emcmake cmake -DCMAKE_BUILD_TYPE=Release ..
make -j

From the build directory, you may then host the result on localhost:8000 using python as

python3 -m http.server --directory ..