clumsy-wav: a small library for generating WAV files in the browser or nodejs

howdy y’all,

i needed a way to compose math-heavy music in the browser, and felt like the best way to do that is by rendering audio as a .wav file

the result is clumsy-wav, a mini library for generating wav data given a sample rate and channels data (mono or stereo). the resulting ArrayBuffer can be used to play through the WebAudio api or be turned into a file Blob for downloading…

this is a great starting point for turning math into music via typescript or javascript, and avoids the overhead of learning some specific framework

cheers

9 Likes