Robin…
You seem to understand set and get quite well, and I just dont
get it for some reason… any chance of a RBN ‘tutorial’ or a
pointer to examples?
Likewise ‘kill’… I can never seem to get it to work…
Oh… btw, set : foo1, = play_chord chord(:D4, :minor ), attack: 4, release: 2, amp: drop_vol
Yeah, no. Doesn’t work.
Eli…
# City Lights...
# Eli...
use_bpm 120
use_debug false
tracker = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
set_volume! 3
drop_vol = 1
define :start_loop do |i|
tracker[i] = 1
end
define :stop_loop do |i|
tracker[i] = 0
end
# When the loop is 'playing', if you turn it off (tracker[1] = 0), I want to
# kill any remaining echos from the fx's ... Can do? Good man!
live_loop :intro1 do
if tracker[1]>0 then
# sync :bar
use_synth :prophet
use_synth_defaults cutoff: rrand(70, 110), release: rrand(1, 4)
with_fx :panslicer, mix: 0.5 do
with_fx :hpf, cutoff: 70 do
with_fx :reverb, mix: 0.4 do
with_fx :echo, mix: 0.2 do
1.times do
foo = play_chord chord(:D3, :minor ), amp: drop_vol
sleep 0.75
end
sleep 0.5
foo1 = play_chord chord(:D4, :minor ), attack: 4, release: 2, amp: drop_vol
sleep 2
end
end
end
end
else
kill foo
kill foo1
sleep 0.25
end
end
start_loop 1
sleep 16
tracker[1] = 0