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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Frequency Modulation (FM) with Web Audio API

31 点作者 gren将近 12 年前

2 条评论

boomlinde将近 12 年前
It&#x27;s a nice article, but I think there are some important things to note here:<p>Typically, what we call &quot;FM synthesis&quot; is implemented as phase modulation -- instead of modulating the frequency of the carrier, you modulate a phase offset. That way, the amplitude of the modulator won&#x27;t have to be scaled with the frequency of the carrier for a uniform timbre over the whole frequency.<p>My second note is that most FM synthesizers (the whole Yamaha range, basically) don&#x27;t define the frequency ratio increments in octaves or quarter octaves, but simply as multiples of the base frequency, producing a harmonic series. Most implementations do this in integer increments, but others like the DX7 and TX81z let you use fractional frequency multiples.
评论 #6263839 未加载
tfj9eor9e将近 12 年前
For what it is worth, I have made a similar work with much less details and very poorly designed, but here are some cool FM instruments: <a href="https://github.com/tfjgeorge/jsfm#gong" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tfjgeorge&#x2F;jsfm#gong</a><p>To hear the sound click the speaker on the right (works at least with Chrome).
评论 #6262974 未加载