-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathskratchbotic.rb
More file actions
68 lines (62 loc) · 1.26 KB
/
skratchbotic.rb
File metadata and controls
68 lines (62 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
use_bpm 80
live_loop :scratch do
rando = rrand(0.5, 2.5)
sample :vinyl_scratch, rate: rando, amp: rrand(0.4, 0.9)
sleep [0.75, 0.5, 0.25, 0.25, 0.25].choose
end
live_loop :drums do
##| stop
sample :loop_amen, beat_stretch: 4, finish: (one_in(4) ? 0.85 : 1)
sleep 4
end
live_loop :rhty do
stop
sync :drums
with_fx :pan, pan: -1 do
4.times do
synth :prophet, note: :DS3, sustain: 0.5
sleep 1
end
4.times do
with_fx :distortion do
s = synth :prophet, note: :AF1, sustain: 0.5
sleep 1
end
end
end
end
live_loop :rhty2 do
stop
sync :drums
detune = 0.5
with_fx :pan, pan: 1 do
4.times do
synth :prophet, note: :DS3 + detune, attack: 0.5
sleep 1
end
4.times do
with_fx :distortion do
s = synth :prophet, note: :AF1 + detune, attack: 0.5
sleep 1
end
end
end
end
live_loop :choir do
##| stop
sync :drums
with_fx :slicer, phase: 0.125, amp_min: 0.4, amp_max: 0.8 do
with_fx :krush do
##| with_fx :flanger, amp: 0.5 do
4.times do
sample :ambi_choir, rate: 1, finish: 0.25
sleep 1
end
4.times do
sample :ambi_choir, rate: 0.5, finish: 0.25
sleep 1
end
end
##| end
end
end