Skip to content

Instantly share code, notes, and snippets.

@RH2
Created October 23, 2025 08:10
Show Gist options
  • Select an option

  • Save RH2/b4bdd5384d7752f3410514cd368cbf93 to your computer and use it in GitHub Desktop.

Select an option

Save RH2/b4bdd5384d7752f3410514cd368cbf93 to your computer and use it in GitHub Desktop.
strudel_day 1 #3
setCpm(174/4) // ~170 BPM for liquid DnB
$drums2: stack(
s("bd:1").beat("0,7?,10",16).duck("3:4:5"),
s("sd:2").beat("[4,12] [1,2,3,4,5,6,7,8,9,10]?.9 [4,12,14]",16),
s("hh:4!8")
).orbit(2)
.gain(0.5)
.delay(0.08)
.color("[#c3e88d #c3e8dd #c3e8ee #c3e8ff]")
._pianoroll()
._scope()
let chords = chord(`<[Cm Gm] [Dm Em] [Am Bm]>`)
$: n("<a@2 b@2 c@2 d@2>"
.pickRestart({
a: "[1,2,3,4]*8 ~ [1,2,3,4]*2".color("#aa11ff").lpf("<400 800>*8"),
b: "[1 2 3 4] [1 2 3 4]*2 [1 2 3 4]!2".color("#dd228d").lpf(800),
c: "[2,4,6,8]*8".color("#c3668d").lpf(600),
d: "[2 4 6 8] [2 4 6 8]*2 [2 4 6 8]!2".color("#ee448d").lpf(1200)
})
)
.sub("<0 1 2 3 -3>")
.set(chords)
.voicing()
.decay(.2)
.distort(1.1)
.s("steinway")
.room(1)
// .lpf(sine.segment(2).range(0,1000))
._pianoroll()
// $: n("[-1,-2,-3,-4],[~ [1 2] 2 [1 2] 3 6 ~ 1 2 1 2 ~] ".sub("<0 1 2 3 -3>")).set(chords)
// .voicing().decay(.2).distort(1.1)
// .color("#c3e88d").s("steinway").room(1).lpf(sine.segment(2).range(0,1000))._pianoroll()
// $: n(irand(16)).struct("[x,x,x] ~ ~ ~ x ~ ~ ~ x*1 x*2").set(chords)
// .voicing().sustain("<0 .1 .4 .6 1>").decay(.9).distort(2)
// .color("#c792ea").s("saw").room(1).lpf(sine.range(200,1000))._pianoroll()
// $: n("[0,2,4 5] [-2 0 2 3] [3,6,8 9] [-4 0 4 5]/4".sub("<0 1 2 3 -3>")).set(chords)
// .voicing().decay(.2).distort(1.1)
// .color("#c3e88d").s("steinway").room(1).lpf(sine.segment(2).range(0,1000))._pianoroll()
// $: n("[[1,2,3,4,5] [2,3,4,5,6] [5,6,7,8,9] [8,9,10,11,12]]".sub("<10>/8")).set(chords)
// .voicing().decay(slider(0.592)).lpf(slider(393,0,1000)).distort(1)
// .color("#ddaaff").s("gm_synth_bass_1").room(00)._pianoroll()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment