Skip to content

Commit 393f8d6

Browse files
committed
Modify Tilburg example to run smoothly on a RP
The piece has been optimised by moving the reverb FX creation outside of the live loop - this means only one reverb is created and used for the entire live loop. The cost of this is that it's no longer possible to modify the reverb as it's playing. Also modulate the pitch of the zawa synth with a knitted pattern.
1 parent 6f0de58 commit 393f8d6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

etc/examples/wizard/tilburg.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44

55
live_loop :low do |idx|
66
# idx = 0
7-
synth :zawa, wave: 1, invert_wave: 1, phase: 0.25, release: 5, note: :e1, cutoff: (range 60, 120, 10)[idx]
7+
synth :zawa, wave: 1, invert_wave: 1, phase: 0.25, release: 5, note: (knit :e1, 12, :c1, 4)[idx], cutoff: (range 60, 120, 10)[idx]
88
sleep 4
99
idx += 1
1010
end
1111

12-
live_loop :lands, auto_cue: false do |idx|
13-
use_synth :dsaw
14-
use_random_seed 66679
15-
with_fx :reverb, room: 1 do
12+
with_fx :reverb, room: 1 do
13+
live_loop :lands, auto_cue: false do |idx|
14+
use_synth :dsaw
15+
use_random_seed 66679
16+
ns = (scale :e2, :minor_pentatonic, num_octaves: 3)
1617
16.times do
17-
ns = (scale :e2, :minor_pentatonic, num_octaves: 3)
1818
play ns.choose, detune: 12, release: 0.1, amp: 2, amp: rand + 0.5, cutoff: rrand(70, 120)
1919
sleep 0.125
2020
end

0 commit comments

Comments
 (0)