Created
September 8, 2021 19:00
-
-
Save jaredculp/e3c35509f4c758347cd6406f2e3e1702 to your computer and use it in GitHub Desktop.
Cover of Tycho's "Awake" in sonic-pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 64 eighth notes | |
bass_riff = [ | |
[:As3] * 16, | |
[:Cs4] * 6, | |
[:Fs3] * 26, | |
[:As2] * 6, | |
[:Fs3] * 7, | |
[:Ds3] * 3 | |
].flatten | |
# 16 quarter notes | |
guitar_riff = [ | |
[:As5] * 2, | |
[:F5, :Cs5] * 3, | |
[:Gs5] * 3, | |
[:F5, :Cs5, :F5], | |
[nil] * 2 | |
].flatten | |
live_loop :guitar do | |
with_fx :reverb do | |
use_synth :pluck | |
guitar_riff.each do |note| | |
play note | |
sleep 0.4 | |
end | |
end | |
end | |
live_loop :bass do | |
use_synth :fm | |
bass_riff.each do |note| | |
play note, amp: 0.5 | |
sleep 0.2 | |
end | |
end | |
crashes = [28, 30, 58, 60, 62] | |
live_loop :drum do | |
64.times do |i| | |
sample :drum_bass_hard if i % 4 == 0 | |
sample :drum_snare_soft if i % 3 == 0 | |
sample :drum_cymbal_closed if i % 2 == 0 | |
sample :drum_cymbal_open if crashes.include?(i) | |
sleep 0.2 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment