Sonic pi rock
Categories:
CODE
Posted on:
use_bpm 120
# Set up the basic rock beat
live_loop :drum_beat do
sample :drum_bass_hard
sleep 1
sample :drum_snare_hard
sleep 1
end
# Add in a rocking guitar riff
live_loop :guitar_riff do
use_synth :guitar_distortion
play (chord :E, :major)
sleep 0.5
play (chord :A, :major)
sleep 0.5
end
# And a smooth bassline to tie it all together
live_loop :bass_line do
use_synth :piano
play (scale :E2, :minor_pentatonic)
sleep 0.25
end