Skip to content

Instantly share code, notes, and snippets.

@benkolera
Last active April 26, 2019 14:56
Show Gist options
  • Select an option

  • Save benkolera/f7ddf248adf12c1d1deb to your computer and use it in GitHub Desktop.

Select an option

Save benkolera/f7ddf248adf12c1d1deb to your computer and use it in GitHub Desktop.
# Made with Sonic Pi v2.8
# http://sonic-pi.net
live_loop :bass do
4.times do
sample :bass_hard_c, amp: 2;
sleep 1
2.times do
sample :bass_hit_c, amp: 4;
sleep 0.5
end
end
end
live_loop :melody do
sync :bass;
use_synth :dsaw;
notes = chord(:f2,:minor)
beats = [0.25,1,1,0.5,1.25]
with_fx :wobble do
beats.each do |wait|
play choose(notes);
sleep wait;
end
beats.zip(scale(:f2,:minor)).each do |(b,n)|
play n;
sleep b;
end
end
end
live_loop :rythmn do
sync :bass;
use_synth :dark_ambience;
1.times do
play_chord(chord(:f2, :minor7), attack: 2, release: 2, amp: 0.2);
sleep 4;
end
end
live_loop :cymbal do
sync :bass
16.times do
sample :drum_cymbal_closed;
sleep 0.5;
end
end
live_loop :snare do
sync :bass;
4.times do
sample :drum_snare_soft;
sleep 1
sample :drum_snare_hard;
sleep 1;
end;
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment