TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Beeplay.js: Write a song in JavaScript

70 pointsby yror10almost 11 years ago

11 comments

ricardobeatalmost 11 years ago
A friend recently created something similar, and he ended up transcribing the full-length Super Mario theme song! <a href="http://eshiota.github.io/retro-audio-js/" rel="nofollow">http:&#x2F;&#x2F;eshiota.github.io&#x2F;retro-audio-js&#x2F;</a><p>Presentation here: <a href="http://www.slideshare.net/eshiota/web-audio-band-playing-with-a-band-in-your-browser" rel="nofollow">http:&#x2F;&#x2F;www.slideshare.net&#x2F;eshiota&#x2F;web-audio-band-playing-wit...</a>
评论 #7865035 未加载
jastantonalmost 11 years ago
If play returned a reference to the play function you could chain them like<p><pre><code> .play(&#x27;D#5&#x27;, 1&#x2F;4)(&#x27;E5&#x27;, 1&#x2F;4) </code></pre> Just a thought on cleaning up the syntax a bit.
评论 #7866359 未加载
thegeomasteralmost 11 years ago
I&#x27;d love to specify wave types or even more advanced stuff such as FM synthesis. With a little work, modules such as this one may enable a whole new category of innovative&#x2F;strange browser apps.
评论 #7865059 未加载
评论 #7864570 未加载
neovivealmost 11 years ago
I remember making these kinds of songs in BASIC. Very fun!
评论 #7864821 未加载
sredmondalmost 11 years ago
I would love to see a MIDI interpreter for something like this. MIDI is already a series of note events (among other weird things like pitchbend and sustain, so it couldn&#x27;t be too hard.
filipedeschampsalmost 11 years ago
That&#x27;s very funny. You should do a Mario theme song also :)
jeffehobbsalmost 11 years ago
Nifty! I&#x27;d love to be able to specify tone (sine wave, square wave, triangle wave).
aaronfcalmost 11 years ago
An online editor to &quot;play&quot; with it would be appreciated! :)
评论 #7864564 未加载
Sonataalmost 11 years ago
very nice, although the text shadow on the code makes it a bit hard to read
djmolluskalmost 11 years ago
now all we need is a javascript powered mod player.
评论 #7864789 未加载
userlabsalmost 11 years ago
Look very nice