Skip to content

Instantly share code, notes, and snippets.

@philMarius
Last active June 19, 2017 18:23
Show Gist options
  • Save philMarius/af539b7fe3b08c94971f574fea8c3d1c to your computer and use it in GitHub Desktop.
Save philMarius/af539b7fe3b08c94971f574fea8c3d1c to your computer and use it in GitHub Desktop.
[SONIC PI] Funky trance-like bass
use_bpm 138
live_loop :kick do
with_fx :compressor, relax_time: 0.5, clamp_time: 0.01, threshold: 1, mix: 1, slope_above: 0.2 do
with_fx :band_eq, freq: 80, mix: 1 do
sample :bd_haus, beat_stretch: 1
sleep 1
end
end
end
live_loop :hi_hats do
sleep 0.5
sample :elec_hi_snare, amp: 0.2
sleep 0.25
sample :elec_hi_snare, amp: 0.2
sleep 0.25
end
def running_base key
with_fx :reverb, room: 1 do
use_synth :saw
sleep 0.25
play key, release: 0.5
sleep 0.25
play (key + 12), release: 0.5
sleep 0.25
play key, release: 0.5
sleep 0.25
end
end
live_loop :bass_running do
2.times do
running_base :c2
end
running_base :g1
running_base :bb1
end
live_loop :bass_thumping do
use_synth :saw
sleep 0.25
play 42, amp: 0.2, release: 0.1
sleep 0.25
play 42, amp: 0.2, release: 0.1
sleep 0.25
play 42, amp: 0.2, release: 0.1
sleep 0.25
end
live_loop :snare do
sleep 1
with_fx :reverb, room: 0.9 do
sample :drum_snare_soft, release: 1, amp: 0.9
end
sleep 1
end
def play_two_bar note
play note, release: 1, amp: 0.7
sleep 0.5
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment