Last active
September 1, 2017 13:41
-
-
Save kn1kn1/c649663a41a45b65b93a34d7aff7faa2 to your computer and use it in GitHub Desktop.
This file contains 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
require "~/github/petal/petal" | |
use_fx_with_petal false | |
spc = get_seconds_per_cycle | |
s = spc / 2.0 | |
use_random_seed 10 | |
live_loop :od1 do | |
sn = ["less","cp","ades3","d","sid","sd","rs"].choose | |
sn2 = "uxay" | |
m = [1, 2, 3, 4, 4, 6].choose | |
m2 = [3, 4, 6, 8].choose | |
r = ["irand 1 2", "irand -2 -1"].choose | |
p = ['rand -1 1', 0, 'rand -0.5 0.5'].choose | |
idx = ['irand 1 2', 'irand 64', rand_i(64), "irand #{rand_i(64)}"].choose | |
d1"#{sn}*#{m} #{sn2}*#{m2}",n:idx,rate:r,pan:p | |
sync :d0 | |
sample dirt_sample("less"), amp: rrand_i(2, 3) if one_in 3 | |
sleep s | |
end | |
use_random_seed 13 | |
live_loop :od2 do | |
sn = ["less","cp","ades3","d","sid","sd","rs"].choose | |
sn2 = ["peri","feelfx","tech","if","outdoor"].choose | |
m = [1, 2, 3, 4, 4, 6].choose | |
m2 = [3, 4, 6, 8].choose | |
r = ["irand 1 2", "irand -2 -1"].choose | |
p = ['rand -1 1', 0, 'rand -0.5 0.5'].choose | |
idx = ['irand 1 2', 'irand 64', rand_i(64), "irand #{rand_i(64)}"].choose | |
d2"#{sn}*#{m} #{sn2}*#{m2}",n:idx,rate:r,pan:p | |
sync :d0 | |
sample dirt_sample("less"), amp: rrand_i(2, 3) if one_in 3 | |
sleep s | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment