live_loop :mel do
use_random_seed 51323112312
6.times do
set :slep, (ring 0.25, 0.5).choose
sleep (ring 0.25, 0.5).choose
end
live_loop :one1 do
use_random_seed 121112231212331
6.times do
play (ring 50,52,55,58).choose
sleep get(:slep)
end
end
end
Hey @holz,
Did you mean to close off the top live_loop, instead of nesting the second one within it?
Anyway, your new idea is pretty good otherwise. You could write sleep get(:slep) instead of sleep (ring 0.25, 0.5).choose too.
Btw, it’s probably helpful most of the time if you just add a new post below a previous one instead of overwriting it as you have done, as this provides more context .
# use_synth :fm
use_synth :blade
live_loop :mel do
use_random_seed 51323112312
6.times do
set :slep, (ring 0.25, 0.5).choose
set :a, (ring 50,52,55,58).choose
sleep (ring 0.25, 0.5).choose
end
end
live_loop :one1 do
use_random_seed 121112231212331
6.times do
s=play (ring 50,52,55,58).choose
x = get(:a)
control s, note: x, note_slide: get(:slep) / 2
sleep get(:slep)
end
end
Also, here is my favourite way of writing essentially the same thing, with only one live_loop:
(Instead of picking the random choices at the time of play, I build them directly into randomised rings beforehand, and just tick through them when playing).
live_loop :one do
notes = with_random_seed 121112231212331 do
(ring 50, 52, 55).pick(6)
end
sleeps = with_random_seed 51323112312 do
(ring 0.25, 0.5).pick(6)
end
tick
play notes.look
sleep sleeps.look
end
(Note that the automatic code indenting in the GUI does not 100% work when assigning the value of the with_random_seed block to a variable like I do here - but the code itself still works )
Thanks for all of ur help!
that´s what i made out of it
live_loop :mel do
use_random_seed (ring 1215233, 67172389, 55676,1215233, 12235, 6157).tick(:a)
2.times do
6.times do
set :slep, (ring 0.25,0.5,0.5, 1).choose
sleep get(:slep)
end
end
end
use_synth :fm
live_loop :one1 do
use_random_seed (ring 12123133, 123236789, 1211233, 22315567).tick(:a2)
2.times do
6.times do
s = play (ring 50,50,55,58).choose, release: 1.5, amp: 0.3
sleep get(:slep)
end
end
6.times do
s = play (ring 58,62,62, 65).choose, release: 1.5, amp: 0.3
sleep get(:slep)
end
end
live_loop :mel1 do
use_random_seed (ring 125663,567).tick(:a3)
2.times do
6.times do
set :slep1, (ring 0.25,0.25, 0.5).choose
sleep get(:slep1)
end
end
end
use_synth :chiplead
live_loop :one21 do
use_random_seed (ring 556768,756).tick(:a5)
3.times do
6.times do
play (ring 55,58,58,62,62, 65).choose
sleep get(:slep1)
end
end
6.times do
play (ring 65,68,70,72,70).choose
sleep get(:slep1)
end
end
live_loop :drms do
sample :drum_bass_hard
sample :drum_cymbal_open, amp: 0.1
sleep 1
sample :drum_snare_soft
sleep 1
sample :drum_bass_soft
sleep 1
sample :drum_snare_soft
sleep 1
sample :drum_bass_soft
sleep 1
sample :drum_snare_soft
sleep 1
end