Skip to content

Instantly share code, notes, and snippets.

@abachman
Created November 7, 2017 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save abachman/d429b61f140ce2ab45cd83d013a254cb to your computer and use it in GitHub Desktop.
Save abachman/d429b61f140ce2ab45cd83d013a254cb to your computer and use it in GitHub Desktop.
aphex-001
# for Sonic Pi - http://sonic-pi.net/
live_loop :flibble do
set :n, rrand_i(1, 9)
sample :tabla_na, rate: 0.9 / (get[:n] / 2.0), amp: 1.0 / get[:n]
sleep 1.0 / get[:n]
end
live_loop :bass do
use_synth :growl
len = 6.0 / get[:n]
play (scale :c3, :minor_pentatonic).sample,
res: 0.9 / get[:n], cutoff: 110,
attack: 0.75, decay: 0.2, sustain: 0.7, release: len
sleep len
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment