Skip to content

Instantly share code, notes, and snippets.

@doggan
Created July 31, 2015 04:00
Show Gist options
  • Save doggan/7af347dee9ff6953de9c to your computer and use it in GitHub Desktop.
Save doggan/7af347dee9ff6953de9c to your computer and use it in GitHub Desktop.
Sonic Pi Experiment
# https://soundcloud.com/doggan/sonic-pi-experiment
live_loop :synth do
use_synth :tb303
256.times do
play 50, amp: 0.75, release: 0.1, cutoff: rrand(60, 120)
sleep 0.125
end
stop
end
sleep 4.0
live_loop :drum do
64.times do
sample :bd_ada, amp: 2
sleep 0.5
end
stop
end
sleep 4.0
4.times do
cue :a
16.times do |i|
use_synth :saw
play chord(:a3, :minor).choose, amp: 3, attack: 0, release: 0.05, cutoff: rrand_i(70, 98), res: rrand(0.9, 0.95)
sleep 0.125
end
cue :b
16.times do |i|
use_synth :hoover
play chord(:a3, :minor).choose, attack: 0, release: 0.05, cutoff: rrand_i(70, 98) + i, res: rrand(0.9, 0.95)
sleep 0.125
end
end
stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment