If you have ideas and advices to improve it, thanks!
use_bpm 100
cells = [
[2],
[1,1],
[1,0.5,0.5],
[0.5,0.5,1],
[0.5,0.5,0.5,0.5],
[0.75,0.25, 0.75,0.25],
[0.25,0.25, 0.25,0.25, 0.25,0.25,0.25,0.25],
[1, 0.25,0.25,0.25,0.25],
[0.25,0.75, 0.25,0.75],
[0.5,1,0.5],
[1.5,0.5],
[0.5,1.5]
]
live_loop :rythm do
##| stop
with_fx :reverb do
use_synth :pluck
n = rand_i(cells.length)
puts n
cells[n].length.times do
play scale(:d4,:major).choose,release: cells[n].tick
sleep cells[n].look
end
end
end
cells2 = [
[2],
[1,1],
[1,0.5,0.5],
[0.5,0.5,1],
[0.5,0.5,0.5,0.5],
[0.75,0.25, 0.75,0.25],
[0.25,0.25, 0.25,0.25, 0.25,0.25,0.25,0.25],
[1, 0.25,0.25,0.25,0.25],
[0.25,0.75, 0.25,0.75],
[0.5,1,0.5],
[1.5,0.5],
[0.5,1.5]
]
live_loop :rythm2, delay: 8 do
##| stop
with_fx :reverb do
use_synth :bass_foundation
n = rand_i(cells2.length)
puts n
cells2[n].length.times do
play scale(:d4,:major).choose,release: cells2[n].tick, cutof: rrand(40,120), amp: 0.5, pan: rrand(-1.0,1.0)
sleep cells2[n].look
end
end
end
cells3 = [
[2],
[1,1],
[1,0.5,0.5],
[0.5,0.5,1],
[0.5,0.5,0.5,0.5],
[0.75,0.25, 0.75,0.25],
[0.25,0.25, 0.25,0.25, 0.25,0.25,0.25,0.25],
[1, 0.25,0.25,0.25,0.25],
[0.25,0.75, 0.25,0.75],
[0.5,1,0.5],
[1.5,0.5],
[0.5,1.5]
]
live_loop :rythm3, delay: 16 do
##| stop
with_fx :reverb do
use_synth :bass_foundation
n = rand_i(cells2.length)
puts n
cells3[n].length.times do
play scale(:d4,:major).choose,release: cells3[n].tick, cutof: rrand(40,120), amp: 0.5, pitch: -12
sleep cells3[n].look
end
end
end
cells4 = [
[2],
[1,1],
[1,0.5,0.5],
[0.5,0.5,1],
[0.5,0.5,0.5,0.5],
[0.75,0.25, 0.75,0.25],
[0.25,0.25, 0.25,0.25, 0.25,0.25,0.25,0.25],
[1, 0.25,0.25,0.25,0.25],
[0.25,0.75, 0.25,0.75],
[0.5,1,0.5],
[1.5,0.5],
[0.5,1.5]
]
live_loop :rythm4, delay: 24 do
##| stop
with_fx :reverb do
use_synth :piano
n = rand_i(cells2.length)
puts n
cells4[n].length.times do
play scale(:d4,:major).choose,release: cells3[n].tick, amp: 0.5, pitch: -24, amp: 1
sleep cells4[n].look
end
end
end