TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

4 点作者 clumsycomputer超过 2 年前

1 comment

clumsycomputer超过 2 年前
howdy y&#x27;all,<p>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&#x27;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.<p>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