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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Dynamically generating MIDI in JavaScript

30 点作者 sergimansilla超过 14 年前

4 条评论

leviathant超过 14 年前
Of course the HTML5 audio tag doesn't support MIDI. MIDI is (basically) a command set for interacting with tone generators, and beyond that, has nothing to do with making sound. Think of it more like an electronic equivalent to sheet music.<p>Nonetheless, implementing MIDI through javascript would be kind of cool. I'm about 90% done an HTML5 emulation of a Boss DR-110 (warts and all), and while the timing of the audio playback ain't great, I'd be curious to see if better results could be achieved by sending the sequencer data out as MIDI instead.<p>Considering how picky folks get about latency in audio software though, generating MIDI with Javascript seems more useful as a learning tool than an actual music production tool.
评论 #1885967 未加载
评论 #1884687 未加载
评论 #1884706 未加载
mudx超过 14 年前
An option for browsers that don't support Quicktime is a Java to Javascript bridge that exposes portions of the MIDI framework (could be used as a fallback): <a href="http://mudcube7.blogspot.com/2010/08/dynamic-midi-generation-in-browser.html" rel="nofollow">http://mudcube7.blogspot.com/2010/08/dynamic-midi-generation...</a>
skybrian超过 14 年前
I wrote something vaguely similar, but it relies on App Engine:<p><a href="http://midiserver.appspot.com/" rel="nofollow">http://midiserver.appspot.com/</a> <a href="https://github.com/skybrian/Midi-Server" rel="nofollow">https://github.com/skybrian/Midi-Server</a><p>Agreed that this stuff is way too nonportable.
athom超过 14 年前
I've been wanting something to translate old Commodore 128 PLAY strings to MIDI. This might just be the ticket. Thank you, Sergi! I'll try and let you know how this works out!
评论 #1885983 未加载