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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Algorithmic symphonies from one line of code (2011)

30 点作者 luismedel超过 3 年前

9 条评论

brudgers超过 3 年前
Interesting comments from about ten years ago, <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=3063359" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=3063359</a>
vok超过 3 年前
Bitshift Variations in C Minor. Really gets going after a while: <a href="https:&#x2F;&#x2F;soundcloud.com&#x2F;robertskmiles&#x2F;bitshift-variations-in-c-minor" rel="nofollow">https:&#x2F;&#x2F;soundcloud.com&#x2F;robertskmiles&#x2F;bitshift-variations-in-...</a>
stellartux超过 3 年前
I made a synth a few years back that lets you use a bytebeat formula as a signal generator. The `t` variable which represents the 8kHz sample rate of the audio in a typical bytebeat is instead proportional to the frequency of the pitch of the pressed key. There is also a `tt` variable, &quot;tempo time&quot;, where the sample rate is proportional to a global tempo, making it easy to make beatsynced rhythms. The bytebeat itself can be written in either JavaScript, WebAssembly Text format, or a little stack based language that can be written in either RPN or S-expressions, which compiles to Wasm and is basically a thin wrapper around the Wasm semantics, which is why it doesn&#x27;t include the DUP and SWAP commands from the original Glitch machine. It works with WebMIDI too, so you can hook up a keyboard to it.<p>It&#x27;s here if anyone wants to play about with it. <a href="https:&#x2F;&#x2F;stellartux.github.io&#x2F;websynth&#x2F;" rel="nofollow">https:&#x2F;&#x2F;stellartux.github.io&#x2F;websynth&#x2F;</a>
yetihehe超过 3 年前
From article:<p>&gt; This would make it possible, for example, for a 256-byte demoscene production to have an interesting and varying audiovisual structure with a strong, inherent synchronization between the effects and the music.<p>6 years later: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=sWblpsLZ-O8" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=sWblpsLZ-O8</a>
hangtwenty超过 3 年前
BitWiz is an ios app that lets you play with bytebeat stuff. I&#x27;ve spent a lot of time with it (though, mostly years ago).<p><a href="https:&#x2F;&#x2F;apps.apple.com&#x2F;us&#x2F;app&#x2F;bitwiz-audio-synth&#x2F;id522046655" rel="nofollow">https:&#x2F;&#x2F;apps.apple.com&#x2F;us&#x2F;app&#x2F;bitwiz-audio-synth&#x2F;id522046655</a>
zimpenfish超过 3 年前
From the &quot;BitWiz Audio Synth&quot; iOS app, this is a surprisingly complex tune for such a simple input.<p><pre><code> (((t*15) &amp; (t&gt;&gt;5)) | ((t*5) &amp; (t&gt;&gt;(3+c))) | ((t*2) &amp; (t&gt;&gt;9)) | ((t*8) &amp; (t&gt;&gt;11))) - 3 </code></pre> (not my work, just one of the examples it came with)
raflemakt超过 3 年前
Here&#x27;s an example to get you started. Compile and run with .&#x2F;progname | tee &#x2F;dev&#x2F;tty | aplay<p>you can also pipe it into other programs like xxd: .&#x2F;progname | xxd | tee &#x2F;dev&#x2F;tty | aplay<p>#include &lt;stdio.h&gt;<p>#include &lt;math.h&gt;<p>int main()<p>{<p><pre><code> int t; for ( t=0; ; t++ ) putchar( t*((t&gt;&gt;7|t&gt;&gt;13)&amp;73&amp;t&gt;&gt;6) ); }</code></pre>
ntoll超过 3 年前
I managed to get MicroPython versions of these working on a micro:bit with the speaker directly plugged into the IO pins. Lots of fun, and MicroPython was definitely quick enough. :-)
potatoman22超过 3 年前
Did they ever get to encode things like rhythm or vocals?
评论 #28561445 未加载