Skip to content

Instantly share code, notes, and snippets.

@nevadajames
Last active November 9, 2018 15:10
Show Gist options
  • Select an option

  • Save nevadajames/dde77df8398df95ebe47513ef40853c7 to your computer and use it in GitHub Desktop.

Select an option

Save nevadajames/dde77df8398df95ebe47513ef40853c7 to your computer and use it in GitHub Desktop.
sonic pi simple song
live_loop :effects do
with_fx :reverb, mix: 0.7, room: 0.5 do
play 20, pan: -1
sleep 0.5
play 22, pan: 1
end
end
live_loop :prog do
sample :bd_haus, rate: 2
sleep 0.5
use_synth :blade
play chord(:E3, :minor), pan: -0.5
sample :bd_haus, rate: 2
sleep 0.5
play chord(:G3, :major), pan: 0.5
sleep 1.75
sample :bd_haus, rate: 2
play chord(:B3, :dom7)
sleep 0.25
end
live_loop :kick do
sample :bd_haus, rate: 1
sleep 1
end
live_loop :drums do
sample :drum_heavy_kick
sleep 1
sample :drum_snare_hard
sleep 1
sample :drum_heavy_kick
sleep 1
sample :drum_snare_hard
sleep 1
end
live_loop :melody do
use_synth (ring :pluck, :blade, :prophet, :saw, :beep, :tri).tick
r = [0.25, 0.25, 0.5, 1].choose
play chord(:e2, :minor).choose, attack: 0, release: r
sleep r
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment