Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Welcome to Sonic Pi v2.11.1
- tempo = 0.8
- backing_volume = 0
- is_offbeat = true
- is_chorus = false
- play_melody = false
- play_hats = false
- live_loop :drums do
- sample :ambi_choir, rate: 0.3
- sample :drum_bass_hard, amp: 1.2
- sleep tempo
- sample :drum_bass_hard if is_offbeat
- sleep tempo
- sample :sn_dolf, rate: 1.1, amp: 1.4
- sample :bass_dnb_f, attack: 0.2, decay: 4, amp: 0.6
- sleep tempo
- sample :drum_bass_hard
- sleep tempo
- is_offbeat = !is_offbeat
- end
- live_loop :hats do
- sample :drum_cymbal_closed if play_hats
- sleep tempo
- end
- live_loop :bass do
- with_fx :reverb, room: 0.5, mix: 0.2 do
- use_synth :pulse
- play :E3, decay: 0.4, amp: backing_volume, release: 2
- sleep 1.2
- play :A3, decay: 0.2, amp: backing_volume
- sleep 0.8
- play :A3, decay: 0.4, amp: backing_volume
- sleep 0.4
- play :B3, decay: 0.4, amp: backing_volume
- sleep 2.4
- play :A3, decay: 0.8, amp: backing_volume
- sleep 2
- end
- end
- live_loop :melody do
- use_synth :prophet
- first_octave = [:E4, :Fs4, :G4, :A4, :B4]
- second_octave = [:E5, :Fs5, :G5, :A5, :B5]
- play choose(is_chorus ? second_octave : first_octave), amp: 1.2 if play_melody
- sleep choose([0.4, 1.2, 2.4])
- end
- live_loop :backing do
- with_fx :echo, mix: 0.2, phase: 0.25 do
- sample :guit_e_fifths, rate: 0.5, amp: backing_volume ? 1 : 0
- end
- sleep 8
- end
- sleep 6.2
- tempo = 0.4
- play_hats = true
- sleep 3.2
- backing_volume = 0.3
- sleep 6.2
- play_melody = true
- loop do
- sleep 6.2
- is_chorus = !is_chorus
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement