|
1 | | -# rand-seed-ver 31 |
2 | | -# Meta-eX |
| 1 | +# rand-seed-ver 32 |
3 | 2 | # |
4 | 3 | # Coded by Sam Aaron |
5 | 4 | # |
|
10 | 9 |
|
11 | 10 | define :ocean do |num, amp_mul=1| |
12 | 11 | num.times do |
13 | | - s = synth [:bnoise, :cnoise, :gnoise].choose, amp: rrand(0.5, 1.5) * amp_mul, attack: rrand(0, 4), sustain: rrand(0, 2), release: rrand(0, 5) + 0.5, cutoff_slide: rrand(0, 5), cutoff: rrand(60, 100), pan: rrand(-1, 1), pan_slide: 1, amp: rrand(0.5, 1) |
| 12 | + s = synth [:bnoise, :cnoise, :gnoise].choose, amp: rrand(0.5, 1.5) * amp_mul, attack: rrand(0, 1), sustain: rrand(0, 2), release: rrand(0, 5) + 0.5, cutoff_slide: rrand(0, 5), cutoff: rrand(60, 100), pan: rrand(-1, 1), pan_slide: 1 |
14 | 13 | control s, pan: rrand(-1, 1), cutoff: rrand(60, 110) |
15 | | - sleep rrand(2, 4) |
| 14 | + sleep rrand(0.5, 4) |
16 | 15 | end |
17 | 16 | end |
18 | 17 |
|
19 | | -define :echoes do |num, tonics, co=80, res=0.9, amp=1| |
| 18 | +define :echoes do |num, tonics, co=100, res=0.9, amp=1| |
20 | 19 | num.times do |
21 | | - play chord(tonics.choose, :minor).choose, res: res, cutoff: rrand(co - 40, co + 20), amp: 0.5 * amp, attack: 0, release: rrand(0.5, 1.5), pan: rrand(-0.7, 0.7) |
| 20 | + play chord(tonics.choose, :minor).choose, res: res, cutoff: rrand(co - 20, co + 20), amp: 0.5 * amp, attack: 0, release: rrand(0.5, 1.5), pan: rrand(-0.7, 0.7) |
22 | 21 | sleep [0.25, 0.5, 0.5, 0.5, 1, 1].choose |
23 | 22 | end |
24 | 23 | end |
25 | 24 |
|
26 | 25 | define :bd do |
27 | 26 | cue :in_relentless_cycles |
28 | 27 | 16.times do |
29 | | - sample :bd_haus, amp: 3 |
| 28 | + sample :bd_haus, amp: 4, cutoff: 120 |
30 | 29 | sleep 0.5 |
31 | 30 | end |
32 | 31 | cue :winding_everywhichway |
33 | 32 | 2.times do |
34 | 33 | 2.times do |
35 | | - sample :bd_haus, amp: 3 |
| 34 | + sample :bd_haus, amp: 4, cutoff: 120 |
36 | 35 | sleep 0.25 |
37 | 36 | end |
38 | 37 | sample :ambi_lunar_land |
|
41 | 40 | end |
42 | 41 |
|
43 | 42 | define :drums do |level, b_level=1, rand_cf=false| |
44 | | - synth :fm, note: :e2, release: 0.1, amp: b_level * 2.5 |
| 43 | + synth :fm, note: :e2, release: 0.1, amp: b_level * 3, cutoff: 130 |
45 | 44 | co = rand_cf ? rrand(110, 130) : 130 |
46 | 45 | a = rand_cf ? rrand(0.3, 0.5) : 0.6 |
47 | 46 | n = rand_cf ? :bnoise : :noise |
|
106 | 105 | at [7, 12], [:crash, :within_oceans] do |m| |
107 | 106 | cue m |
108 | 107 | end |
| 108 | + |
109 | 109 | uncomment do |
110 | | - use_random_seed 0 |
| 110 | + use_random_seed 1000 |
111 | 111 | with_bpm 45 do |
112 | 112 | with_fx :reverb do |
113 | 113 | with_fx(:echo, delay: 0.5, decay: 4) do |
|
118 | 118 | ocean 1, 0.25 |
119 | 119 | end |
120 | 120 | sleep 10 |
| 121 | + use_random_seed 1200 |
121 | 122 | echoes(5, [:b1, :b2, :e1, :e2, :b3, :e3]) |
122 | 123 | cue :a_distant_object |
123 | 124 | echoes(5, [:b1, :e1, :e2, :e3]) |
|
149 | 150 | in_thread(name: :bassdrums) do |
150 | 151 | use_random_seed 0 |
151 | 152 | sleep 22 |
152 | | - loop do |
153 | | - 3.times do |
154 | | - bd |
155 | | - end |
156 | | - sleep 28 |
157 | | - loop do |
158 | | - bd |
159 | | - end |
| 153 | + 3.times do |
| 154 | + bd |
| 155 | + end |
| 156 | + sleep 28 |
| 157 | + live_loop :bd do |
| 158 | + bd |
160 | 159 | end |
161 | 160 | end |
162 | 161 |
|
|
200 | 199 | drums 2 |
201 | 200 | end |
202 | 201 |
|
203 | | - loop do |
| 202 | + live_loop :drums do |
204 | 203 | 8.times do |i| |
205 | 204 | drums 1 |
206 | 205 | end |
|
230 | 229 | puts "Reality A" |
231 | 230 | sleep 12 |
232 | 231 | use_synth_defaults phase: 0.5, res: 0.5, cutoff: 80, release: 3.3, wave: 1 |
| 232 | + |
233 | 233 | 2.times do |
234 | 234 | [80, 90, 100, 110].each do |cf| |
235 | 235 | use_merged_synth_defaults cutoff: cf |
|
240 | 240 | end |
241 | 241 | 4.times do |t| |
242 | 242 | binary_celebration(6, 0.5) |
243 | | - synth :zawa, note: :e2, phase: 0.25, res: rrand(0.9, 0.99), cutoff: [100, 105, 110, 115][t] |
| 243 | + synth :zawa, note: :e2, phase: 0.25, res: rrand(0.8, 0.9), cutoff: [100, 105, 110, 115][t] |
244 | 244 | sleep 3 |
245 | 245 | end |
246 | 246 | end |
|
0 commit comments