Sonic Pi tuts 09 : fx, utiliser les effets
Le code du neuvième tutoriel vidéo Sonic Pi, consacré aux effets (with_fx).
Fait partie du carnet Sonic Pi, 2016–2018.
et le code :
live_loop :intro do
stop
with_fx :gverb, spread: 1, damp: 0.1, room: 200, release: 8,
ref_level: 4, tail_level: 4 do
sample :bd_tek, amp: 0.1
sleep 32
end
end
live_loop :calm_intro, delay: 4 do
stop
with_fx :reverb, mix: 0.6, room: 1, damp: 0.9 do
use_synth :sine
play_pattern_timed [:c2, :ab3, :f2, :c3, :ab3], [0.5, 1, 0.5,
1.5, 0.5], amp: 0.1
end
end
live_loop :guitareintro, delay: 36 do
stop
with_fx :reverb, room: 1, mix: 0.5, damp: 0.5 do
with_fx :echo, phase: 0.25 do
use_synth :saw
play_pattern_timed [:c3, :ab4, :f4, :c4, :ab4], [0.5, 1, 0.5,
1.5, 0.5], pitch: 24, amp: 0.05
sleep 1
end
end
end
live_loop :kick, sync: :guitareintro do
stop
with_fx :level, amp: 2 do
with_fx :distortion, distort: 0.8 do
sample :bd_808
end
sample :bd_boom
sleep 0.5
end
end
live_loop :densesnare, sync: :kick do
stop
with_fx :echo, phase: 0.25 do
with_fx :hpf, cutoff: 130 do
sample :drum_cymbal_closed
sleep 0.125
sample :drum_cymbal_soft
sleep 0.125
end
sleep 2
end
end
live_loop :ambiance, sync: :kick do
stop
with_fx :slicer, phase: 0.25, amp_min: 0.5 do
sample :bass_thick_c
sleep 2
end
end
Publié à l’origine sur svdk.fr en 2018.