Repository navigation
Expand file tree
/
Copy pathindus.rb
More file actions
76 lines (63 loc) · 1.37 KB
/
Copy pathindus.rb
File metadata and controls
76 lines (63 loc) · 1.37 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
69
70
71
72
73
74
75
76
use_debug false
use_bpm 180
eval_file "~/Documents/music/lib.rb"
goyave = load_sample "~/Documents/music/goyave.ogg"
kick = load_sample :bd_tek
hat = load_sample :hat_noiz
### DRUMS
define :kick do |v|
with_fx :distortion, mix: 0.5 do
with_fx :tanh, mix: 0.5 do
with_fx :normaliser do |level|
with_fx :reverb do
8.times do
sample kick if tick % 8 > 6 || v > 0
sleep 0.5
with_fx :lpf do
sample hat if look % 8 > 3
end if v > 1
sample kick if look % 8 == 7
sleep 0.5
end
control level, amp: 0, amp_slide: 1
end
end
end
end
end
define :hats do |v|
with_fx :hpf, amp: 0.5 do
with_fx :gverb do |gverb|
32.times do
sleep 0.15
control gverb, mix: tick % 4 / 3
sample hat if look % 4 > 0
sleep 0.1
end
end
end
end
define :scre do |v|
with_fx :nhpf, amp: 0.5 do
with_fx :krush do
with_fx :slicer do |slicer|
with_fx :reverb, room: 0.2 do
control slicer, mix: 0
sample hat
sample goyave, start: 0.5, rate: -1, pitch: 24
sleep 2
control slicer, mix: 1
sleep 6
end
end
end
end
end
### SONG
arrange [
{
kick: [0,1,1,2,2,2,2],
hats: [_,_,_,0,0,0,0],
scre: [0,0,0,0,0,0,0],
},
]