Last active
July 10, 2016 19:14
-
-
Save mgalushka/0b97df01d337159788fed9ae50c0e3e6 to your computer and use it in GitHub Desktop.
Some intro
This file contains hidden or 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
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