Settings

Theme

Show HN: Simple library for generating .wav file data in TypeScript

github.com

4 points by clumsycomputer 3 years ago · 1 comment

Reader

clumsycomputerOP 3 years ago

howdy y'all,

was looking for a simple way to explore and play with signal generation, and think that creating wav files is the most straightforward and robust way to go about doing just that. in order to scratch that itch i've implemented a function that takes a sample rate and channels data (mono or stereo), and returns an ArrayBuffer of the corresponding structured wav file.

implementing this package was a quick and fun process, which gave me the opportunity to learn about packing bits in the browser. whenever time allows in the future (some amount of years, hopefully not decades), i look forward to implementing a similar function for png files

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection