Last active
November 2, 2017 19:22
-
-
Save mbutz/efc4d4d314fa05b0b1e6 to your computer and use it in GitHub Desktop.
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
use_bpm 110 | |
use_debug true | |
set_sched_ahead_time! 2 | |
live_loop :bar do | |
cue :tick | |
sleep 1 | |
end | |
# beeps at beginning of bar | |
live_loop :one_bar, autocue: false do | |
sync :tick | |
cue :each_bar | |
sample :elec_blip, amp: 1, rate: 0.5 | |
sleep 4.0 | |
end | |
# if, then start/stop synching loops after two bars | |
# beeps 2 times at loop start | |
live_loop :two_bars, autocue: false do | |
sync :tick | |
cue :each_two_bars | |
2.times do | |
sample :elec_blip, amp: 1, rate: 1 | |
sleep 0.5 | |
end | |
sleep 7.0 | |
end | |
# if, then start/stop synching loops after four bars | |
# beeps 4 times at loop start | |
live_loop :four_bars, autocue: false do | |
sync :tick | |
cue :each_four_bars | |
4.times do | |
sample :elec_blip, amp: 1, rate: 2.0 | |
sleep 0.25 | |
end | |
sleep 15 | |
end | |
# run (1) or pause (0) live loops | |
b2_04 = 0 | |
b2_08 = 0 | |
b2_16 = 0 | |
b4_04 = 0 | |
b4_08 = 0 | |
b4_16 = 0 | |
# following loops should be started/stopped after 2 bars | |
live_loop :b2_quarters, autocue: false do | |
stop if b2_04 < 1 | |
sync :each_two_bars | |
8.times do | |
sample :drum_tom_lo_soft, amp: 0.5, rate: 0.5 | |
sleep 1 | |
end | |
end | |
live_loop :b2_eighths, autocue: false do | |
stop if b2_08 < 1 | |
sync :each_two_bars | |
16.times do | |
sample :drum_tom_lo_soft, amp: 0.5, rate: 1 | |
sleep 0.5 | |
end | |
end | |
live_loop :b2_sexteenths, autocue: false do | |
stop if b2_16 < 1 | |
sync :each_two_bars | |
32.times do | |
sample :drum_tom_lo_soft, amp: 0.2, rate: 1.5 | |
sleep 0.25 | |
end | |
end | |
# following loops should be started/stopped after 4 bars | |
live_loop :b4_quarters, autocue: false do | |
stop if b4_04 < 1 | |
sync :each_four_bars | |
16.times do | |
sample :drum_tom_hi_soft, amp: 0.5, rate: 0.5 | |
sleep 1 | |
end | |
end | |
live_loop :b4_eighths, autocue: false do | |
stop if b4_08 < 1 | |
sync :each_four_bars | |
32.times do | |
sample :drum_tom_hi_soft, amp: 0.5, rate: 1 | |
sleep 0.5 | |
end | |
end | |
live_loop :b4_sexteenths, autocue: false do | |
stop if b4_16 < 1 | |
sync :each_four_bars | |
64.times do | |
sample :drum_tom_hi_soft, amp: 0.2, rate: 1.5 | |
sleep 0.25 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment