Skip to content

Instantly share code, notes, and snippets.

@jeremywen
Created August 1, 2015 03:08
Show Gist options
  • Save jeremywen/2fa0f7e76b63e2a958b4 to your computer and use it in GitHub Desktop.
Save jeremywen/2fa0f7e76b63e2a958b4 to your computer and use it in GitHub Desktop.
sonic pi live coding session 1
drums = (ring :bd_ada, :sn_dub)
samples1 = (ring :perc_snap, :sn_dub, :perc_bell, :sn_zome, :perc_snap2)
samples2 = (ring :guit_e_fifths, :elec_blip, :guit_harmonics, :ambi_choir, :ambi_glass_hum)
starts2 = (ring 0, 0.1, 0, 0.2, 0)
rates2 = (ring 1, 0.5, -1, 2)
snareHits = (ring 0.1, 0.1, 0.1, 0.25)
#drums
live_loop :loop1 do
with_fx :level, amp:2 do
sample :bd_ada, attack:0, sustain_level:0, decay: 0.1, start: 0, amp:2
sleep 0.125
sleep 0.125
sample drums.tick, attack:0, decay: 0.05, sustain_level:0, start: 0, amp:(ring 0.7, 0, 0).tick
sleep 0.125
sample samples1.tick, attack:0, decay: 0.05, sustain_level:0, start: 0, amp:(ring 0, 0, 0.5).tick
sleep 0.125
sample :loop_amen, attack:0, decay: snareHits.tick, sustain_level:0, start: 0.26, rate:1, amp:2
sleep 0.5
end
end
#bass
live_loop :loop2 do
with_fx :level, amp:2 do
sync :loop1
2.times do #def 2
use_synth :sine
play (scale :G1, :minor).tick, attack:0.08, decay: 0.2, sustain_level:0, amp:1
sleep 0.250
end
end
end
#perc
live_loop :loop3 do
with_fx :level, amp:2 do
with_fx :echo, phase:0.25, decay:3, mix:0 do
sync :loop1
4.times do #def 4
sample samples2.tick, attack:0, decay: 0.25, sustain_level:0, start: starts2.tick, rate:rates2.tick, amp:2
sleep 0.25
end
end
end
end
#amb
live_loop :loop4 do
with_fx :level, amp:0.2 do
sync :loop1
with_fx :slicer, phase:0.5 do
with_fx :reverb, room:0.8, damp:0.5, mix:1 do
with_fx :echo, phase:0.25, decay:6 do
sample :guit_harmonics, rate:(ring 1, 2, 0.5, 2, 0.5, 4, 1, 2).tick, amp:1, attack:0.5
sleep 2
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment