News for hackers. Stuff that matters.
Re:Learn to code music in the browser with strudel.cc (Free ... by WhyOhWhyQ on Tuesday December 02, 2025 @01:21PM (#46124456)
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.

Re:Learn to code music in the browser with strudel.cc (Free ... by yaxu on Friday December 05, 2025 @04:41AM (#46159063)
Kind of - that's switching between a fast version and a slow version of the track though if that makes sense, rather than changing the global tempo, so you'll get discontinuities in the music.

You can change the global tempo with something like

.cps("[0.75|1.75]")

and make it happen less often like

.cps("[0.75|1.75]/8")