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.

Sonic Pi: Ruby as a Composition Tool

215 pointsby chaosharmonic9 months ago

13 comments

chaosprint9 months ago
If you&#x27;re interested in live coding, feel free to try Glicol (<a href="https:&#x2F;&#x2F;glicol.org" rel="nofollow">https:&#x2F;&#x2F;glicol.org</a>).<p>There&#x27;s also TidalCycles. I have to praise the ability of Haskell and Ruby in creating DSLs<p>For Glicol, my thoughts on language design are focused on a synth-inspired syntax, speed for composition, and convenience of sound design. The idea is to design a DSL that draws from previous programming habits but isn&#x27;t confined to existing languages.
评论 #41201233 未加载
dark-star9 months ago
Some years ago I found a video on YouTube by someone who used Sonic Pi to re-create the THX Deep Note. That video was awesome because he didn&#x27;t initially explain what he was going to do. Je started by creating a single &quot;note&quot; of the sound but called it a bee. Then he tweaked the sound of the bee a bit here and there, showed what it sounds like, and in the end he was like &quot;and now let&#x27;s just create a couple hundred of these bees and hear what it sounds like in a beehive&quot;, and when he did that the Deep Note emerged.<p>I loved that video but I have since been unable to find it again. If anyone has a link to that video, please share
Alifatisk9 months ago
I think this is one of the cases where Ruby shines, the heavy metal programming allows the syntax to be almost english like programming.
评论 #41203394 未加载
评论 #41201628 未加载
pjerem9 months ago
I’ve had the chance to watch Sam Aaron (Sonic Pi’s father) doing a live performance with Sonic Pi several years ago.<p>He was impressive. The music was evolving each time he changed code in live. And it was good.
评论 #41216144 未加载
yowlingcat9 months ago
If you&#x27;re interested in a couple of examples of artists that use Sonic Pi, I found out about DJ_Dave [1] a while back and think her stuff is a great example of a talented, competent musician using the tool well. She did an AMA [2] on Reddit a while back and I believe has some stuff up on GitHub [3]<p>[1] <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=JiQHclg_648" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=JiQHclg_648</a><p>[2] <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;audius&#x2F;comments&#x2F;19dxmy6&#x2F;hey_audius_333_im_dj_dave_im_a_live_code_artist&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;audius&#x2F;comments&#x2F;19dxmy6&#x2F;hey_audius_...</a><p>[3] <a href="https:&#x2F;&#x2F;github.com&#x2F;algorave-dave">https:&#x2F;&#x2F;github.com&#x2F;algorave-dave</a>
decasia9 months ago
Speaking as a Ruby developer, this is very cool. I could see using this for algorithmically generated music and that would be neat. (Speaking of which, I was meaning to make our noisy git repository events into some kind of algorithmic music — this would be good for that.)*<p>But speaking as a musician with lots of keyboard instruments — if I were trying to compose a piece of music, I&#x27;m not really sure why I would compose musical sequences with Ruby when I can play them with a MIDI keyboard, or record an acoustic instrument and loop it. I see that you <i>can</i> input anything you like with the Ruby DSL, but it&#x27;s not a great UX compared to a piano keyboard.<p>I guess to put it another way — I would not use this to replace what I use Logic for. But that&#x27;s just me.<p>* see also <a href="http:&#x2F;&#x2F;listen.hatnote.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;listen.hatnote.com&#x2F;</a>
评论 #41208694 未加载
评论 #41219496 未加载
评论 #41210587 未加载
评论 #41212718 未加载
bbbhltz9 months ago
I was just thinking about Sonic Pi the other day and watched a few videos online. I only ever played with it briefly years ago(busted out the classic Old MacDonald and Hot Cross Buns jams).
garbagepatch9 months ago
For a different take (not live) at programming music check scamp for python[0]. The author also has a bunch of videos in youtube with things he does with it, like this Fourier Elise video[1].<p>[0] <a href="http:&#x2F;&#x2F;scamp.marcevanstein.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;scamp.marcevanstein.com&#x2F;</a><p>[1] <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=zq32bIud3OM" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=zq32bIud3OM</a>
latexr9 months ago
Looks like your HTML comments aren’t taking, because your editor converted -- (two hyphens) to — (one em dash).
评论 #41202170 未加载
naltroc9 months ago
Shoutout to alsoknownasrox, my favorite Sonic Pi livecoder!<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=wXIvXrBQFkE" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=wXIvXrBQFkE</a>
cies9 months ago
I wish this was available as a flatpak. There are just toooo many dependencies that need to be custom install to install Sonic Pi. Packaging it for distro will be a nightmare.<p>Flatpak to the rescue.
评论 #41202192 未加载
评论 #41201943 未加载
_vaporwave_9 months ago
This is a really neat demo!<p>Just a heads up though your site layout is broken in Safari
评论 #41204920 未加载
portpecos9 months ago
So it’s a music composition programming language?
评论 #41219588 未加载