Skip to content

Instantly share code, notes, and snippets.

@mgalushka
Last active July 10, 2016 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgalushka/0b97df01d337159788fed9ae50c0e3e6 to your computer and use it in GitHub Desktop.
Save mgalushka/0b97df01d337159788fed9ae50c0e3e6 to your computer and use it in GitHub Desktop.
Some intro
phases = [
[ :G2, :G2, :G2, :G2, :G2, :G2, :F1, :F1, :F1, :G1, :G1, :F2].ring,
[ :G3, :G3, :G3, :G3, :G3, :G3, :F2, :F2, :F2, :G2, :G2, :F2].ring
]
takt = 0
counter = 0
phase = 0
live_loop :main_loop do
#use_synth :piano
use_bpm 110
counter = (inc counter)
use_synth :piano
with_fx :ixi_techno do
play phases[phase][counter], amp: 1
end
if takt >= 2
sample :bd_zum, amp: 0.25
end
if takt >= 4 and counter == 7
with_fx :echo, pre_amp: 10 do
sample :elec_blup, amp: 0.1, sustain: 10, rate: 3
end
end
if takt >= 6 and counter == 1
sample :loop_industrial, beat_stretch: 4, amp: 1
end
if counter == 11
counter = 0
phase = 1 - phase
takt = takt + 1
end
sleep 0.5
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment