-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathNaN_inch_nils.rb
More file actions
67 lines (61 loc) · 1.33 KB
/
NaN_inch_nils.rb
File metadata and controls
67 lines (61 loc) · 1.33 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
use_bpm 176
kick = in_thread do
loop do
with_fx :lpf, cutoff: 100 do
sample :bd_tek, rate: 0.9, pre_amp: 1.5
sleep 2
end
end
end
snare = in_thread do
loop do
with_fx :hpf, cutoff: 90 do
sleep 2
sample :sn_dub, rate: 0.5, finish: 0.3
sleep 2
end
end
end
hat = in_thread do
sleep 32
loop do
with_fx :lpf, cutoff: 120 do
sample :drum_cymbal_closed, pre_amp: 10, finish: 0.05, amp: 0.18#, rate: 0.5
sleep 0.5
end
end
end
bass = in_thread do
sleep 32
loop do
with_synth :tb303 do
with_synth_defaults sustain: 0.5, release: 0, amp: 0.6 do
with_fx :ixi_techno, phase: 4, cutoff_min: 50, cutoff_max: 90, res: 0.8 do
sleep 1
play_pattern_timed [:c1, :c2, :c1, :g1, :g1, :g1, :as1], [1, 1, 1, 1.5, 1, 0.5, 2]
play_pattern_timed [:c1, :c2, :c1, :c1, :as1, :g1, :c1, :c1], [1, 1, 1, 2, 0.5, 0.5, 0.5, 0.5]
end
end
end
end
end
lead = in_thread do
sleep 96
loop do
with_fx :flanger, amp: 0.5 do
with_fx :krush, amp: 0.5 do
with_synth :pretty_bell do
play_pattern_timed [:g5, :f5, :f5, :e5, :ds5, :d5, :as4, :as4, :a4, :c5], [3, 5, 3, 5, 3, 5, 1, 1, 1, 4]
sleep 1
end
end
end
end
end
sleep 160
snare.kill
kick.kill
hat.kill
bass.kill
sleep 64
lead.kill