Beginner coder klaxon! Belated Christmas track. The idea is it starts with In Dulci Jubilo then Fairytale of New York elements come in later, by uncommenting ‘stop’. However the sync doesn’t work - help appreciated! It has a 6/8 bar against a 3/4 bar. Actually sounds surprisingly OK if they don’t sync, but would like to know how to fix it.
#Christmas remix: In Dulci Jubilo (trad) x Fairytale of New York (Finer, Macgowan), arr J Horne.
#This has a 6/8 against a 3/4 bar and uses 'stop' to control the later loops.
#Sync not working yet
#Ignore :jungle; bits at the top from sampler experiments
use_bpm 90
#time_signature = 9.0 / 8.0
#use_midi_logging true
use_timing_guarantees true
#use_midi_defaults port: "circuit_rhythm_3" #set the destination port
#midi_all_notes_off channel: "*" ; stop
live_loop :mettriplet do
play :rest
sleep 0.25
end
#In Dulci Jubilo (traditional)
with_fx :pitch_shift, pitch: -12 do
live_loop :dulcevox do
sync :mettriplet
#stop
use_synth :organ_tonewheel
# First 8-bar section
play_pattern_timed [60, 59, 57,55,53,67], [1.5, 1.5, 1.5, 1.5, 3, 3], amp: 3
sleep 0
play_pattern_timed [60, 55, 53,52,53,55], [1.5, 1.5, 1.5, 1.5, 3, 3], amp: 3
end
end
live_loop :jungle do
stop
sync :mettriplet
sample :loop_amen, onset: pick
sleep 1
end
live_loop :dulcetune, amp: 5 do
sync :mettriplet
# stop
use_synth :pluck
#first 4 bars
play_pattern_timed [60, 60, 64, 65, 67, 69, 67, 67], [0.5, 0.25, 0.5, 0.25, 0.5, 0.25,0.5, 0.25]
play_pattern_timed [60, 60, 64, 65, 67, 69, 67], [0.5, 0.25, 0.5, 0.25, 0.5, 0.25,0.75]
#3rd 4 bars:
play_pattern_timed [67, 69, 67, 65, 64, 60, 60], [0.5, 0.25, 0.5, 0.25, 0.75, 0.5, 0.25]
# 4th 4 bars:
play_pattern_timed [62, 62, 64, 62, 60, 62, 64, 65], [0.5, 0.25, 0.5, 0.25, 0.5, 0.25,0.5, 0.25]
#3rd 4 bars:
play_pattern_timed [67, 69, 67, 65, 64, 60, 60], [0.5, 0.25, 0.5, 0.25, 0.75, 0.5, 0.25]
# 5th 4 bars:
play_pattern_timed [62, 62, 64, 62, 60, 62, 64], [0.5, 0.25, 0.5, 0.25, 0.5, 0.25, 0.75]
# 6th 4 bars:
play_pattern_timed [57, 57, 59, 59, 60, 67], [0.5, 0.25, 0.5, 0.25, 0.75, 0.75]
# 7th 4 bars:
play_pattern_timed [64, 64, 62, 62, 60], [0.5, 0.25, 0.5, 0.25, 1.5]
end
#Fairytale of New York (Jem Finer, Shane Macgowan, Kirsty MacColl)
#use_merged_midi_defaults channel: 5
live_loop :fiddletune, amp: 0 do
sync :mettriplet
# stop
use_synth :pluck
play_pattern_timed [72, 74, 76, 74, 72, 74, 76, 74, 72, 69, 72,
72, 74, 76, 79, 76, 79, 79, 76, 72, 74, 79,
79, 76, 72, 74, 72, 74, 76, 74, 72, 69, 72,
72, 74, 76, 79, 76, 72, 74, 76, 74, 72, 72],
[0.5,0.25,0.75,0.5,0.5,0.5,0.25,0.75,0.5,1,0.5,
0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,1, 0.5,
0.5,0.5,0.5,0.5,0.5,0.5,0.75,0.25,0.5,1, 0.5,
0.25,0.75,0.5,0.5,0.5,0.5,0.25,0.75,0.5,1, 0.5]
end
live_loop :singers do
sync :mettriplet
stop
use_synth :pluck
play_pattern_timed [67, 69, 67, 64, 60, 64, 67, 69, 67, 64, 60, 62,
64, 62, 60, 57, 53, 57, 55, 57, 59, 60, 64,64],
[0.75, 0.25, 0.5, 0.25, 0.75, 0.5]
sleep 0
end