If you see something to improve in my patch (I could have used more variables for the chords definitions for instance ).
Thanks for hearing!
Cheers
##| Only inC
use_bpm 110
##| I define my chords
define :chord1 do
with_fx :wobble, phase: 1, phase_slide: 4 do |e|
use_synth :dsaw
play chord(:c3, :major, invert: 1), release: 4
control e, phase: 0.025
sleep 4
end
end
define :chord2 do
with_fx :wobble, phase: 1, phase_slide: 4 do |e|
use_synth :dsaw
play chord(:c2, :major, invert: 2), release: 4
control e, phase: 0.025
sleep 4
end
end
define :chord3 do
with_fx :wobble, phase: 1, phase_slide: 4 do |e|
use_synth :dsaw
play chord(:c3, :major, invert: 2), release: 4
control e, phase: 0.025
sleep 4
end
end
define :chord4 do
with_fx :wobble, phase: 1, phase_slide: 4 do |e|
use_synth :dsaw
play [:g, :c3, :f4], release: 4
control e, phase: 0.025
sleep 4
end
end
##The melody
with_fx :reverb, room: 0.6, mix: 0.5 do
with_fx :flanger, phase: 0.5, mix: 0.8 do
live_loop :melody do
##| stop
play scale(:c4, :major_pentatonic, num_octaves: 3).choose, amp: 0.4
sleep 1
end
end
end
##A bd_haus and a bass
live_loop :bd, delay: 24 do
##| stop
use_synth :tb303
play (ring, :c2,nil, :g1, :b1).tick, amp: 1.5, pan: rdist(0.9)
sample :bd_haus, amp: 2
sleep 1
end
##Drums
live_loop :drums, delay: 36 do
##| stop
sample (ring,:bd_haus,:sn_zome).tick, amp: 2
sleep 1
end
##Chords
with_fx :reverb, room: 0.5, mix: 0.6 do
live_loop :chords, delay: 48 do
##| stop
chord1
chord2
chord3
chord4
chord3
end
end