Skip to content

Instantly share code, notes, and snippets.

@RH2
Created October 23, 2025 07:02
Show Gist options
  • Select an option

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

Select an option

Save RH2/c72b54705eccf112ba11601636097d2c to your computer and use it in GitHub Desktop.
strudel_dat 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.25)
.delay(0.08)
.color("[#c3e88d #c3e8dd #c3e8ee #c3e8ff]")
._pianoroll()
._scope()
let chords = chord(`<[Cm Gm] [Dm Em] [Am Bm]>`)
$: 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