Learning Music with Strudel
181 points
6 days ago
| 12 comments
| terryds.notion.site
| HN
raphar
2 hours ago
[-]
I posted this link, some days ago:

Coding Trance Music from Scratch (Again) [video]: https://www.youtube.com/watch?v=iu5rnQkfO6M

It´s a well done programming and music performance

reply
a1ff00
1 hour ago
[-]
+1 Switch Angels performances
reply
Jarmsy
28 minutes ago
[-]
Increase the duck attack!
reply
danvoell
19 minutes ago
[-]
this is awesome. The only code instruction video instructions that I have watched that doubled as a song. At first I thought it was the Euro dance hall lyrics and then I realized it was actually the code instructions.
reply
l0c0b0x
1 hour ago
[-]
Yeah, thanks for both posts. I love the narration with the live coding (like a conversation with voice and code). If I can get to that level, I'll die a happy man.
reply
faxmeyourcode
2 hours ago
[-]
I've run across more and more strudel musicians (developers?) doing a kind of live coding performance art and posting clips on tiktok and reels. It's really entertaining to watch. I've been meaning to dabble in it.
reply
grantmuller
47 minutes ago
[-]
Another live-coding environment that is quite nice (Haskell-based) is TidalCycles: https://tidalcycles.org

I wrote a whole album of material about 10 years ago with it, just remastered/re-released it. It's a fun way to write music while on an airplane!

reply
lomase
20 minutes ago
[-]
Strudel is TidalCycles but in javascript.
reply
ashwindharne
25 minutes ago
[-]
I went to a basement party/rave recently where the DJ was live-coding strudel, was incredibly cool to see in person. people would watch them type out new lines in anticipation of a beat drop

Pretty cool to see this post, I had no idea where to find more info about it!

reply
xdc0
1 hour ago
[-]
It's fun to watch and somehow more approachable to me than a big program with lots of menus and virtual knobs.
reply
ubidefeo
34 minutes ago
[-]
I have submitted a talk for FOSDEM26 on Live Coding Music and Hardware with Strudel and MicroPython. Hope to get in :)
reply
rob74
8 minutes ago
[-]
This clip from an 80s spy comedy is probably too obscure to become a meme, but it deserves to be: https://clip.cafe/gotcha-1985/what-this-strudel/
reply
DigitalDopamine
2 hours ago
[-]
Loved playing with it! https://strudel.cc/?qVv8Cr0OD6cc
reply
xrd
2 hours ago
[-]
This is so incredible, musically, visually and didactically. Absolutely amazing. Absolutely amazing.
reply
alabhyajindal
28 minutes ago
[-]
Amazing! Though I can't get the theme to stop changing while the music is playing. Is there a setting I'm missing?
reply
yayitswei
4 minutes ago
[-]
Looks like the theme changes are part of the arrangement (see lines 135-149).
reply
rodrigodlu
1 hour ago
[-]
Wow, I started learning recently, I didn't know you can change the theme.

Also this music brings really good vibes!

I get more motivated when I can see it working directly and change some code here and there!

Thanks for sharing.

reply
smrq
59 minutes ago
[-]
That's absolutely sick. I love seeing a full arrangement like this as opposed to destructive live coding--that's cool too, but I don't really vibe with it as a workflow. Definitely taking some inspiration from this.
reply
mettamage
37 minutes ago
[-]
Well that song was my digital dopamine for the day. Couldn’t stop bobbing my head while in a busy train
reply
l0c0b0x
1 hour ago
[-]
Great work! I'm saving this one (I have it in a loop rn on my big screen).
reply
mazswojejzony
1 hour ago
[-]
This is great! I'm not really into electro, but I really like this one!
reply
chrislo
1 hour ago
[-]
Love this! Patterning the theme is such a great idea.
reply
josittas
2 hours ago
[-]
Very cool! Thank you for sharing :)
reply
lioeters
2 hours ago
[-]
That was a lovely experience.
reply
i_gumby
2 hours ago
[-]
There's also a neovim plugin for those who want to play around with this locally https://github.com/gruvw/strudel.nvim ; it essentially launches strudel in a browser but synchronizes the strudel and nvim editors.

EDIT: fixed link to not have trailing semicolon.

reply
rodrigodlu
1 hour ago
[-]
Is there a way (like a CSS rule or something similar) that when you look at the main strudel window, it only shows the piano rolls, punch cards, sliders, etc - but not the code?

Maybe with just the comments? This would be killer, since I have dual displays, and on one I can just focus on the code, the other one can have all the visual stuff.

I'm using this plugin, but having the code twice distracts me a lot (but I prefer the original neovim instead the integrated vim mode inside strudel).

Thanks in advance!

reply
ebertucc
1 hour ago
[-]
I'm not using the plugin, but this hides the code in the browser:

.cm-line span { outline: none !important; color: transparent; background: transparent !important; }

reply
i_gumby
1 hour ago
[-]
I've only just started playing around with it, so I don't know enough about it unfortunately. You could open an issue against the repo; the plugin owner might be able to answer your question.
reply
timojaask
1 hour ago
[-]
reply
semi-extrinsic
1 hour ago
[-]
Link has a trailing semicolon and doesn't work - but awesome to have nvim + strudel!
reply
Y_Y
1 hour ago
[-]
https://github.com/gruvw/strudel.nvim

Now with no added punctuation!

reply
mvkel
48 minutes ago
[-]
I was excited to see this, but then realized only chapter 1 is done out of what ultimately will/should be a 25 chapter tome.

Strudel docs leave something to be desired as well.

What I've found to be the most useful so far is to ask an LLM to make a line of whatever: a beat, a synth, etc., tweak it, then layer it.

It gives a really good sense of how to architect a song file, which is missing from the little snippets in the strudel docs

reply
jarth9
43 minutes ago
[-]
Strudel is my favorite music coding environment. I mostly play on acoustic instruments but coding music has been really helpful as I try to learn music theory. Being able to just play in the browser without setup helps me focus on the music and less on fiddling with the tool. And it supports vim key bindings!
reply
mclau153
2 hours ago
[-]
A really great source for this is DJ Dave
reply
macmac
54 minutes ago
[-]
I love this approach to learning music.

A nitpick: Isn't the below statement wrong? I thought "RolandTR909" was the name of the soundbank which is used for both bd and sd?

"bd is bass drum (also called kick-drums), sd is snare drum. RolandTR909 is the name of the sound."

reply
zitterbewegung
1 hour ago
[-]
Strudel is a great tool and is helping me to make EDM from scratch. There are good tutorials and music that is easy to get started or to make something really interesting.
reply
mberning
1 hour ago
[-]
Is there a way to run it completely locally?
reply
thuuuomas
1 hour ago
[-]
Yeah, it's on codeberg https://codeberg.org/uzu/strudel
reply