-
Notifications
You must be signed in to change notification settings - Fork 0
/
brBolero.rb
64 lines (54 loc) · 1.25 KB
/
brBolero.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Borley Rectory Bolero
# Jamie McAllister
# Rings of Power
my_seq = (ring :A1, :E2, :A1, :D2, :A1, :C2, :A1, :G2, :G2, :Gb2, :Gb2, :F2, :F2, :E2, :G2)
high_seq = (ring :F2, :Gb2, :G2, :F3)
alt_high_seq = (ring :C2, :A2, :D2, :E2)
# Just amplitude vars...
b = 0.01
# Modifiers
up = 0.05
down = -0.05
adjust = up
#Live Loops!
live_loop :drum do
with_fx :krush, cutoff: rrand(60,100) do
sample :ambi_drone, rate: choose([4,8,12,24,48]), amp: b * 0.8
sleep choose([0.125,0.125,0.25,0.5,0.25,0.25,1])
end
end
live_loop :volume do
if b > 0.5 then adjust = down end
if b < 0.05 then adjust = up end
b = b + adjust
sleep 1.0 / 0.75
print b
end
live_loop :foo do
use_synth :saw
with_fx :ixi_techno, pre_amp: 1.9 do
play my_seq.tick, amp: 0.4
with_fx :reverb, room: 0.4, amp: 0.5 do
sample :bd_fat, amp: 1
end
end
sleep 1
end
live_loop :bar do
use_synth :sine
with_fx :distortion , mix: 0.2 do
play my_seq.tick, amp: 3, release: 0.125
sample :bd_boom, amp: 0.4
sleep 1.0 / 6.0
end
end
live_loop :high_beep do
use_synth :piano
if (adjust == up) then play high_seq.tick, amp: b end
if (adjust == down) then
with_fx :echo do
play alt_high_seq.tick, amp: b
end
end
sleep 1.0 / 12.0
end