Skip to content

Instantly share code, notes, and snippets.

@kjunichi
Created September 12, 2020 10:31
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save kjunichi/87c08d167578576d3b9e19815e554a79 to your computer and use it in GitHub Desktop.
use_bpm 112
live_loop :beat1 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 :beat2 do
sample :drum_cymbal_closed
sleep 0.25
end
live_loop :beat2 do
sleep 0.5
sample :drum_cymbal_closed
end
# F G Am Am
live_loop :main1 do
use_synth :chiplead
4.times do
play :F4
sleep 1
end
play :G4
sleep 4
4.times do
play :A4
sleep 1
end
play :A4
sleep 4
end
live_loop :mainbase1 do
use_synth :dsaw
16.times do
play chord(:F3, :major), sustain: 0.2
sleep 0.25
end
16.times do
play chord(:G3, :major), sustain: 0.2
sleep 0.25
end
16.times do
play chord(:A3, :minor), sustain: 0.2
sleep 0.25
end
16.times do
play chord(:A3, :minor), sustain: 0.2
sleep 0.25
end
end
live_loop :main2 do
use_synth :piano
16.times do
play chord(:F4, :major).choose, sustain: 0.2
sleep 0.25
end
16.times do
play chord(:G4, :major).choose, sustain: 0.2
sleep 0.25
end
16.times do
play chord(:A4, :minor).choose, sustain: 0.2
sleep 0.25
end
16.times do
play chord(:A4, :minor).choose, sustain: 0.2
sleep 0.25
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment