Skip to content

Instantly share code, notes, and snippets.

@marcoonroad
Last active May 29, 2026 23:00
Show Gist options
  • Select an option

  • Save marcoonroad/f4853d090605ddb63f44fe01cf5eebf6 to your computer and use it in GitHub Desktop.

Select an option

Save marcoonroad/f4853d090605ddb63f44fe01cf5eebf6 to your computer and use it in GitHub Desktop.
Some more Strudel music coding examples...
// pulsing reese saw bass (for texture)
$: note("a#1") // base bass note
.sound("sawtooth")
.layer(
pattern => pattern.struct("[x -]").transpose(0),
pattern => pattern.struct("[- x]").transpose(12) // octave jump
)
.cutoff(2000)
.ftype("ladder")
.fast(4)
.transpose(sine.range(0, 3).segment(4).round().slow(4).mul(2).sub(2)) // LFO of semitones [ -2, 0, 2, 4 ]
.cpm(130/4) // 130 BPM and time signature 4/4
._punchcard({ labels: 1 })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment