samaaron/sonic-pi — pull request #140 by jweather (2014-10-04 06:10:10+00:00)
Title: freesound() function to download and cache freesound WAVs

I'll just leave this here:

live_loop :loops do
sample freesound(27130), finish: 0.5
sample freesound(27128), finish: 0.5
sleep 8
end

live_loop :kick do
sync :loops
8.times do
sample freesound(209906)
sleep 1
end
end

live_loop :snare do
sync :loops
snare = freesound(26903)

sleep 1
3.times do
sample snare
sleep 2
end
sample snare
sleep 0.8
sample snare, amp:0.5
end