Skip to content

Instantly share code, notes, and snippets.

@kristianfreeman
Created October 2, 2018 18:11
Show Gist options
  • Save kristianfreeman/f475edc6caf573bf13b6900d3cfd3a61 to your computer and use it in GitHub Desktop.
Save kristianfreeman/f475edc6caf573bf13b6900d3cfd3a61 to your computer and use it in GitHub Desktop.
# https://github.com/kylestetz/slang
@bass (adsr (osc saw) 0 0.5 0 0.5) + (filter lp 20)
play @bass (rhythm [8n 16n 8n 16n r16n]) (notes [e1 e2 e1 d2])
@pluck (adsr (osc saw) 0 0.05 0 0)
play @pluck (rhythm [16n]) (notes [e4 d4 e4 g4])
@doot (adsr (osc square) 0 0.04 0.1 0) + (filter lp 20)
play @doot (rhythm [r16n 16n 16n 16n]) (notes [e2 e2 e2 d3 g3 a3])
@percussion (drums) + (gain 5)
@hat (drums)
play @percussion (rhythm [4n]) (notes [2])
# Comment these out for the breakdown 💃
play @percussion (rhythm [r4n 4n]) (notes [11])
play @hat (rhythm [r16n 16n 16n 16n]) (notes [7])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment