Skip to content

Instantly share code, notes, and snippets.

@mg6
Last active November 19, 2025 09:40
Show Gist options
  • Select an option

  • Save mg6/3f560171046b0bb09efbf532b703646b to your computer and use it in GitHub Desktop.

Select an option

Save mg6/3f560171046b0bb09efbf532b703646b to your computer and use it in GitHub Desktop.
// by Switch Angel from https://www.youtube.com/watch?v=iu5rnQkfO6M
setCpm(136/4)
register('acidenv', (x, pat) => pat.lpf(100)
.lpenv(x * 9).lps(.2).lpd(.12)
)
// "In the beginning, there were five notes"
lead: n("<0 4 0 9 7>*16".add("<7 _ _ 6 5 _ _ 6>*2")).scale("g:minor").trans(-12).orbit(3)
.sound("sawtooth").acidenv(slider(0.824))
.delay(.6).pan(rand)
.fm(.8).fmwave('white')
._pianoroll()
bass: n("<7 _ _ 6 5 _ <5 3> <6 4>>*2").scale("g:minor").trans(-24).orbit(4)
.detune(rand)
.sound("supersaw").acidenv(slider(0.815))
._pianoroll()
drum: s("bd:4!4")
.duck("3:4:5:6")
.duckdepth(.8)
.duckattack(.16)
._scope()
clap: s("cp:0!4").orbit(8).gain(.2)
noise: s("white!4").att(.8).orbit(6).gain(.2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment