-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnoise.rb
44 lines (43 loc) · 967 Bytes
/
noise.rb
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
live_loop :habanera do
use_synth :fm
use_transpose -12
play (ring :d, :r, :r, :a, :f5, :r, :a, :r).tick
sleep 0.25
end
live_loop :drums do
use_random_seed 2001
16.times do
r = rrand(0.5, 10)
sample :drum_bass_hard, rate: r, amp: rand
sleep 0.125
end
end
live_loop :habanera do
use_synth :fm
use_transpose -12
play (ring :a, :d, :f5, :a, :f5, :r, :d, :r).tick
sleep 0.25
end
live_loop :melody do
with_fx :reverb, amp: 2 do
16.times do
n = (scale 0, :minor_pentatonic).choose
sample :bass_voxy_hit_c, rpitch: n + 4
sleep 0.125
end
end
end
live_loop :bass_drum do
sample :bd_haus, cutoff: 70, amp: 1.5
sleep 0.5
end
live_loop :landing do
bass_line = (knit :e1, 3, [:c1, :c2].choose, 1)
with_fx :slicer, phase: [0.25, 0.5].choose,
invert_wave: 1, wave: 0 do
s = synth :square, note: bass_line.tick, sustain: 4,
cutoff: 60
control s, cutoff_slide: 4, cutoff: 120
end
sleep 4
end