DigitalDopamine a day ago

Loved playing with it! https://strudel.cc/?qVv8Cr0OD6cc

  • abhinavmir a day ago

    I shed an actual tear. I dreamed of days like this. I got close, building a small language for generating generic music, but with decay, sawtooth and stuff? It's a functional DAW.

    • kaoD 10 hours ago

      > functional DAW

      I made Lambda Musika[0][1] a long time ago and its elevator pitch is literally "Lambda Musika, the functional DAW" (as in functional programming).

      Check the teal button at the bottom for other examples!

      I don't use it that much anymore (Strudel's language is truly expressive) but I still reach for it when I want to do sound design, since Strudel is more like a sequencer (where Lambda Musika lacks).

      [0] https://lambda.cuesta.dev/

      [1] https://github.com/alvaro-cuesta/lambda-musika

  • xrd a day ago

    This is so incredible, musically, visually and didactically. Absolutely amazing. Absolutely amazing.

  • theshrike79 7 hours ago

    Ahh, so THAT's how you make an actual song with it instead of just a loop :)

    SwitchAngel always makes their songs live so I never got it, but now I understand.

  • simonw a day ago

    That demo is excellent. You can uncomment some lines at the bottom and hit alt+enter (or click the Update button) to add visualization effects too.

  • alabhyajindal a day ago

    Amazing! Though I can't get the theme to stop changing while the music is playing. Is there a setting I'm missing?

    • yayitswei a day ago

      Looks like the theme changes are part of the arrangement (see lines 135-149).

  • smrq a day 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.

  • rodrigodlu a day 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.

  • mettamage a day ago

    Well that song was my digital dopamine for the day. Couldn’t stop bobbing my head while in a busy train

  • fuzzythinker 9 hours ago

    Love, love, love it! A fitting username!

  • chrislo a day ago

    Love this! Patterning the theme is such a great idea.

  • l0c0b0x a day ago

    Great work! I'm saving this one (I have it in a loop rn on my big screen).

  • mazswojejzony a day ago

    This is great! I'm not really into electro, but I really like this one!

  • dallen33 a day ago

    This is absolutely insane.

  • oceansky 20 hours ago

    Not recommended for people prone to seizures

  • butlike a day ago

    You made an entire performance. Good, good job

    • squarefoot a day ago

      I found that annoying on the editor, but if used on a 2nd screen to build graphics programmatically (fractals, etc), or via an external port to drive RGB LEDs arrays or matrices, results could be spectacular. Imagine fractals driven by music or a giant spectrum analyzer made of LED strips.

      • rrix2 10 hours ago

        I recently bodged together a board that would drive FastLED programs parameterized by the control voltages that come off a eurorack, it was really neat and straightforward because you have some really good clock sources to sync to

  • josittas a day ago

    Very cool! Thank you for sharing :)

  • ubidefeo a day ago

    love how you change the style as it plays. the custom font is a nice touch :)

  • lioeters a day ago

    That was a lovely experience.

  • globalnode 19 hours ago

    That made me smile, well done and thanks Lennard! (do recommend setting colors = False though)

jquaint 23 minutes ago

Anyone have any experience improving performance of their Strudel patches?

I find I get close to something ready to perform... but then the webapp starts struggling and I find myself back at the drawing board.

I get the sense I'm not using it right and making the DSP work much harder than it needs to :P

simonw a day ago

I've been seeing a few links to Strudel recently so I went digging to see how old the project is - looks like it launched in April 2022 https://loophole-letters.vercel.app/strudel

It came out of the same team as Tidal Cycles, a Haskell live-coding music tool which was first released around 2009. https://tidalcycles.org/docs/around_tidal/tidal_history/

  • pragma_x 18 hours ago

    IIRC, that team are also (now) live-music-coding veterans, which in turn has informed how Strudel is built. It's not just a project that does stuff, it's a pretty well crafted instrument that is ideal for these performances.

    As an engineer, I love letting the requirements shape the solution, but this is just on a whole other level.

  • Sammi a day ago

    Such a good example of why everything is becoming js. Because it's where the users are. Anything that isn't in js will just languish comparatively.

    Everything is becoming js because everything is becoming js.

    • tormeh a day ago

      Have you taken a look at how to install the Haskell variant? It's a full-on recipe, or a docker container. I'd take a desktop application over a website any day, but that was not on the menu. It was an SPA vs a devops exercise. Of course the SPA wins.

      • Sammi 21 hours ago

        Yes. The web wins on deployment every time.

        • nightski 21 hours ago

          Steam wins for games imho.

    • thoughtpalette 3 hours ago

      "...because everything runs js*"

      Javascript runs on ~70% of all devices worldwide.

    • venturecruelty 17 hours ago

      Tidal Cycles is hardly languishing. Not everything needs a billion users and VC funding.

    • nolroz 6 hours ago

      ... And js is everywhere

faxmeyourcode a day 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.

  • ashwindharne a day 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!

  • grantmuller a day 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!

    • lomase a day ago

      Strudel is TidalCycles but in javascript.

      • cpill 21 hours ago

        yeah, but TidalCycles doesn't have the interactive code that shows you what is playing or have inline sliders :P

        • venturecruelty 17 hours ago

          Strudel doesn't have all of the advanced features of TidalCycles. It really just depends on what you need. Strudel is easier to get started with, and definitely more visual/immediate, but TidalCycles has the full power of Haskell, longer history, and more advanced tooling. Either way, it's really nice to see people getting more involved in programmatic music, regardless of which tool they use. :)

  • xdc0 a day ago

    It's fun to watch and somehow more approachable to me than a big program with lots of menus and virtual knobs.

  • venturecruelty 17 hours ago

    Algorave definitely seems to be having a moment! I know the scene has been around for a while (live chiptune shows have been a thing for years), but it seems like the Strudel-specific live coding shows are rapidly becoming popular. I love to see it. As someone who likes both programming and music, it's awesome to see people mix both and get fantastic results.

  • ge96 a day ago

    Would be curious licensing on music you produce with it eg. can you use it, record the session then put it on YT no copyright.

i_gumby a day 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.

  • jquaint 30 minutes ago

    This is a great plugin! It's so cool to do this in a vim workflow.

  • rodrigodlu a day 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!

    • ebertucc a day 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; }

    • i_gumby a day 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.

neom 9 hours ago

I was just talking to JChris Anderson about Strudel last week, he forked it, adding "snaps" where users can snapshot their work allowing for the creation of multi-layered songs, added a "vibe" tab so anyone can easily update the code with pompts, and a few other changes.

Here's the fork on GitHub: https://github.com/VibesDIY/strudel

Here's a preview of what it would look like when merged: https://strudel.use-vibes.com/

Here he is playing around with the preview: https://www.youtube.com/watch?v=0oJhnkWDafM

raphar a day 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

  • venturecruelty 17 hours ago

    A slightly older Switch Angel trance video is how I learned about Strudel/TidalCycles: https://www.youtube.com/watch?v=GWXCCBsOMSg. Her narration over top makes it the perfect trance track. "More chaos brings more power. More power brings more control." I desperately want a clean sample of that.

    • rossjudson 12 hours ago

      Exact same here. I watched that video about ten times in a row.

      I learned it's more important to know how the big sound pieces fit together and what you can do by tweaking them. Have many, many different versions of the big pieces doesn't really matter.

      I also came away wishing that Bitwig had a strudel mode. Every time anyone does anything in the grid, they'd be better off with a strudel equivalent. I think.

      • mettamage 11 hours ago

        Yea I have been asking around for such a feature on their subreddit

  • a1ff00 a day ago

    +1 Switch Angels performances

    • Jarmsy a day ago

      Increase the duck attack!

      • venturecruelty 17 hours ago

        "The key... the key... it has to be... G... (minor)."

  • danvoell a day 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.

  • canyp 15 hours ago

    Tangent, but...is that her real/natural voice? It's like studio-level female vocals for Hardstyle without even trying. I am mesmerized.

    Edit: it looks like she has a filter on. I'm an audio noob so I can't tell.

  • illwrks 21 hours ago

    This is an excellent example. It also highlights how if I tried this it would sound terrible as I lack have vocabulary to describe what I want, and how that relates to the code.

  • l0c0b0x a day 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.

  • mbStavola a day ago

    Every time I watch one of her performances, I smile when she says "... with the scope."

danvoell an hour ago

Love it! Could someone go ahead and make a plugin that allows you to download an mp4 of the loop. for whatever. Abelton, Garageband...

WhyOhWhyQ a day ago

Let me introduce you to a good time.

Step 1: https://strudel.cc/workshop/getting-started/ . Click play on coastline" @by eddyflux

Step 2: Listen for a while

Step 3: setcps(.75) -> setcps(1.5)

Step 4: Listen :)

That is the extent of my strudel knowledge, but damn this is cool.

  • WhyOhWhyQ a day ago

    I was trying to make it automatically randomly choose between the normal speed and twice speed after a long time. I think appending

    .fast(chooseCycles(1, 2).slow(128))

    at the very end does it. But I'm not actually sure. Would a strudel user mind informing me how this is done? Also, I was hoping to make it automatically shift the key, but I couldn't figure it out.

  • a_t48 a day ago

    Sadly doesn't even run at all on safari. "Importing a module script failed." :(

    • Towaway69 21 hours ago

      Also worked find on my Safari 18.6

      uBlock/uMatrix perhaps? At least that was for me the issue on Firefox.

    • artimaeis 21 hours ago

      Running fine here on Safari 26.1 (Tahoe 26.1).

ubidefeo a day ago

I have submitted a talk for FOSDEM26 on Live Coding Music and Hardware with Strudel and MicroPython. Hope to get in :)

  • venturecruelty 17 hours ago

    Good luck! That sounds like a fantastic talk. Please do submit a post if you end up doing it. :D

  • Archit3ch 16 hours ago

    MicroPython? Are you doing digitally-controlled analog? :)

wouterjanl a day ago

Allow me to use this post to give big kudos to the maintainers of Strudel for having put together a brilliant set of official docs. I found them incredibly well put together and hence really useful to learn. I have played around with Strudel many evenings and I am always amazed about how intuitive Strudel is to create beats and sounds, to the point that I prefer to create music in Strudel over the established DAW software. I would love for there to be a good bridge between producing sounds and beats with Strudel code and structurering and mastering an entire track. This is missing in Strudel since it’s clearly build for a live coding environment. Any tips from users about ways or tools to make this bridge are always welcome!

pragma_x 18 hours ago

I've been following this project with great interest.

Quite possibly one of the most interesting things is just how competent the REPL is. It does some things that no other programming environment does in a prompt, all centered around real-time processing:

- All code in the prompt is being constantly evaluated - What parts of expressions are currently in use are highlighted - Visualization widgets sit side-by-side with the code

That last one is playfully rendered as pseudo-TUI "graphics", but is also presented with no borders or chrome around it. That's in sharp contrast to notebooks like Jypyter or Mathematica. They use minimal screen real-estate which also minimizes scrolling. If you look at videos of using this live, the ability to navigate the REPL quickly is crucial for performances.

So it's a lot like a kind of step-wise debugger, only more minimalist and moving at the (slow) speed of the music.

Ever since seeing Strudel, I've wondered what various programming sandboxes would be like if they could visually demonstrate operations in slow-motion.

dennis16384 10 hours ago

Even though Algorave is quite new, everyone who ever touched .mod/.s3m/.xm/.it can fell young again haha.

DJ_Dave live events are the best illustration for all of it. If you love electronic music, ever touched any generative art, and know basic coding this is for you.

mvkel a day 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

badmonster a day ago

Live-coding music environments like Strudel are powerful because they externalize the creative process. When your composition is visible code, you can iterate faster, debug musical ideas, and even collaborate in ways traditional DAWs don't support. Code-as-instrument is genuinely innovative.

proc0 19 hours ago

Love Strudel, trying to learn it but inevitably you also need some musical foundation. It's a fascinating blend of specialties. Also I found AI is complete garbage at generating Strudel. Here is my weak attempt at Beethoven:

<pre> const SCALE = 'C#:minor' const CPM = 56 const SOUND = 'piano'

$: arrange( [4, n("<-7, 0>.25")], [4, n("<-8, -1>.25")],

  [2, n("<-9, -2>*.5")],
  [2, n("<-11, -4>*.5")],
  
  [4, n("<-10, -3>*.5")],
  
  [4, n("<0, -3, -7>*.25")],
  [4, n("<-1#, -3, -8#>*.25")],
  
  [2, n("<-2, -9>*.5")],
  [2, n("<-6, -13>*.5")],
  
  [4, n("<-3, -10>*.5")],
  
  [4, n("<0, -7>*.25")],
).sound(SOUND) .scale(SCALE) .cpm(CPM);

$: arrange( [8, n("4 7 9")],

  [2, n("5 7 9")], 
  [2, n("5 8b 10")],
  
  [1, n("4*.1 6# 10")], 
  [1, n("4 7 9")],
  [1, n("4 7 8")], 
  [1, n("3 6# 8")],
  
  [1, n("0 2 5")],
  [2, n("2 7 9")],
  [1, n("2 7 9, 11 - - 11")],
  
  [1, n("2 8 10, 11 -")],
  [2, n("2 8 10")],
  [1, n("2 8 10, 11 - - 11")],

  [1, n("2 7 9, 11 -")],
  [1, n("2 7 9")],
  [1, n("1 7 10, 12 - -")],
  [1, n("1 7 10")],

  [1, n("2 4 9, 11 - -")],
  [1, n("2 4 9")],
  [1, n("3 4 8, 10 - -")],
  [1, n("3 4 8, 13 - -")],

  [1, n("2 4 9, 9 -")],
  [3, n("2 4 9")],
).sound(SOUND) .scale(SCALE) .cpm(CPM);

</pre>

arvinsim 14 hours ago

I have just discovered Strudel last month. Even as an owner of Ableton, there is just something compelling about coding music in.

dr_kiszonka 15 hours ago

Strudel is great! But... are these really chords?

note("c4 e4 g4 c5").sound("triangle")

  • danilafe 12 hours ago

    As a sibling comment said, it's a C major chord, but voiced one noted at a time. "usually" / in pop, you hear all the notes at once.

    • dr_kiszonka 8 hours ago

      I think chords at least three notes played at once, with the exception of maybe power chords. Using your definition, every piece with two or more notes has chords :)

      https://www.britannica.com/art/chord-music

      • keymasta 5 hours ago

        As per my knowledge, and as per Britannica, a chord actually uses three or more notes. A two note structure is called a diad, which implies a bit of confusion in the term "power chord" (written as 5, as in G5, which == G D == 1 5).. as it is not by definition a chord but a diad.

        This may be a pedantic clarification, but that is the definition

        • kaoD 3 hours ago

          TBH "definition" depends on the theory from which you're looking at the notes.

          In the eyes of the Common Practice two simultaneous notes are not chords; in rock they most definitely are; in EDM you don't even care, since timbre is all that matters; in jazz you'd say "it depends" (e.g. might even be a triad with an omitted 5th... depending on context!)

          Music theory is too post-hoc.

    • kaoD 9 hours ago

      > but voiced one noted at a time

      I think OP's point is that the very definition of a chord is a bunch of notes played at the same time.

      • keymasta 5 hours ago

        Whereas when played separately it would be an referred to as an arpeggio. But in harmony we might still refer to it as a chord, as in saying, arpeggiate the C# minor (chord) to start moonlight sonata.

        This might better be described as arpeggiating C#m second inversion or even C#m/G# in the right over C# in the left...

        This is getting possibly-weird but you could call it an arpeggiation of G#sus4(#5)/C#

  • sandos 4 hours ago

    Arpeggiated chord?

bobim 18 hours ago

True that compared to FoxDot, Sardine or Tidal, the syntax and visualization are just making the whole thing a real pleasure to use.

But this is way too taxing for my linux boxes that are ending stuttering quite badly sometimes. Are you all using macs or something?

  • AnyTimeTraveler 15 hours ago

    Weird. My android phone is 3+ years old and was not a flagship when I got it. It had a little problem with stuttering on more complex examples. It sounded like it was running out of things that can play at the same time, but scrolling was still smooth. It didn't feel like it was pinning my phone's cpu. On my laptop, it didn't break a sweat with firefox and pipewire. Are you sure it's not a config issue?

    • bobim 12 hours ago

      I can't tell, things like BespokeSynth are running ok with alsa or jack. I got the rt kernel, made a few things to audio priority, fiddled with governors, but no luck. Let's say that it happens quite quickly with the Stitch Angel fast trance example "the key needs to be G" supersaw synth.

      Chromium is better at it than Firefox though.

      Maybe this 5800X3D needs a buff up...

      • Mashimo 2 hours ago

        > alsa or jack. I got the rt kernel, made a few things to audio priority, fiddled with governors,

        Maybe the issue is you touched too much?

        A 5800X3D is freaking power house. It's not a hardware issue. You can run "fast trance" on a laptop twice the age of your CPU.

dfltr a day ago

Strudel is dope and a ton of fun, but every single piece of its interface seems determined to confuse people who already know music theory and composition.

That's not really a point against it, it's a great tool and it's a ton of fun, but I wish there was a way to use it that at least kind of sort of mapped back to traditional music notation, especially rhythm notation.

  • pierrec a day ago

    It would be unergonomic, if not painful, to use a western classical approach to rhythm in a programming environment. Alex McLean, the main author of Tidal/Strudel, is very much into Indian classical, and this is reflected in the approach to rhythm. IMO this is an good choice, and people who know music theory and composition should feel right at home, assuming we're talking about the right theory.

    When it comes to pitch (and I guess we agree on this) Strudel is firmly on the western traditional side. It generally assumes 12-tone equal temperament, uses ABC notation, has built-in facilities to express chords using their classical names...

    Meanwhile I'm over here programming music where I express all frequencies as fractions or monzos. I find this better suited to a music programming environment, but this might be more personal.

jarth9 a day 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!

macmac a day 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."

oceansky 20 hours ago

I've been trying to compose music with Strudel after some years attempting to play the guitar and the piano.

This resource is very helpful

zitterbewegung a day 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.

rfl890 21 hours ago

Did anyone else think this article was gonna teach you how to play music using strudel (the food) somehow?

bibimsz 20 hours ago

when AI takes over the world it will communicate with itself with a tonal language communicated in Strudel