Skip to content

Instantly share code, notes, and snippets.

@TCotton
Created October 26, 2025 17:04
Show Gist options
  • Select an option

  • Save TCotton/59df6c882cc9a948c6a0340d35069a3f to your computer and use it in GitHub Desktop.

Select an option

Save TCotton/59df6c882cc9a948c6a0340d35069a3f to your computer and use it in GitHub Desktop.
Use of every and superimpose
d3
$ every 4 ( superimpose
( slice 2 (fast "2" "[1 2 3 4]" ) -- re-slice give variation of slight glitch
. (|+| gain "0.1") -- slightly louder
. ( # sound "bd*4") -- different sound from the bDrums
))
$ every 2 ( superimpose
( (|+| gain "-0.2") -- slightly quieter
. (0.25 <~) -- delay by 1/4 cycle
. (slice 4 (fast "2" "[1 3 2 4]")) -- re-slice + rearrange
. (# speed 1.1) -- slight pitch up
))
$ sound "<bDrums:0> * 4"
# gain 0.7
# orbit 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment