Toca uma nota
play 75
sleep 0.5
play 60
sleep 0.5
play 45
Outras sintasizadores
Toca um sample
sample :ambi_lunar_land
sample :ambi_drone
Loop
loop do
sleep 2
sample :guit_e_fifths
end
Controlado Frequencia dos Samples
sample :guit_e_fifths, rate: 1
sample :guit_e_fifths, rate: 0.5
sample :guit_e_fifths, rate: 2
Frequencia randomico
loop do
sample :guit_e_fifths, rate: [1, 0.5, 2, 0.5, 4].choose()
sleep 2
end
FX
with_fx :echo do
loop do
sample :guit_e_fifths, rate: [1, 0.5, 2, 0.5, 4].choose()
sleep 2
end
end
Amen
loop do
with_fx :krush do
with_fx :echo do
sample :guit_e_fifths, rate: [1, 0.5, 2, 0.5, 4].choose()
end
end
sample :loop_amen, rate: 0.87
sleep 2
end
Iteracao
use_synth :blade
4.times do
play 40
sleep 1
play 60
sleep 1
end
4.times do
3.times do
sample :loop_amen, rate: 0.87
sleep 2
end
sample :loop_amen, start:0.5, rate: 0.87
sleep 1
sample :loop_amen, start:0.5, rate: 0.87
sleep 1
end
Tocando Listas
use_synth :dpulse
play_pattern [30,40,60,80]
use_synth :dpulse
4.times do
play_pattern_timed [30,40,60,80], 0.3
sleep 1
end
Threads pra deixa em paralelo
in_thread do
4.times do
3.times do
sample :loop_amen, rate: 0.87
sleep 2
end
sample :loop_amen, start:0.5, rate: 0.87
sleep 1
sample :loop_amen, start:0.5, rate: 0.87
sleep 1
end
end
use_synth :dpulse
in_thread do
4.times do
3.times do
play_pattern_timed [30,40,60,80], 0.5
end
play_pattern_timed [90,70,50,20], 0.25
play_pattern_timed [90,70,50,20], 0.25
end
end