Skip to content

Commit e88daef

Browse files
committed
sample loops
1 parent 86d90af commit e88daef

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

experiments/sample_loops.rb

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Adjust the random seeds to modify the loops as it's running
2+
3+
use_debug false
4+
5+
with_fx :reverb, room: 0.9 do
6+
7+
live_loop :tab do
8+
use_random_seed 2
9+
16.times do
10+
sample "tabla_", pick, amp: 1.5-(tick % 2)
11+
sleep 0.25
12+
end
13+
end
14+
15+
live_loop :guit, sync: :tab do
16+
sample "guit", pick
17+
sleep 4
18+
end
19+
20+
live_loop :bd, sync: :tab do
21+
use_random_seed 7
22+
sleep 0.25
23+
8.times do
24+
sample "bd", pick, amp: 2
25+
sleep 0.5
26+
end
27+
end
28+
29+
live_loop :bass, sync: :tab do
30+
use_random_seed 77
31+
4.times do
32+
sample "bass", pick, release: 4, amp: 1
33+
sleep 1
34+
end
35+
end
36+
37+
live_loop :ambi, sync: :tab do
38+
use_random_seed 0
39+
2.times do
40+
sample "ambi", pick, release: 4, amp: 3
41+
sleep 2
42+
end
43+
end
44+
45+
live_loop :elec, sync: :tab do
46+
use_random_seed 6
47+
4.times do
48+
sample "elec", pick, release: 4, amp: 1
49+
sleep 1
50+
end
51+
end
52+
53+
end

0 commit comments

Comments
 (0)