Skip to content

Instantly share code, notes, and snippets.

@emlyn
Created July 1, 2015 23:13
Show Gist options
  • Save emlyn/6097b454ad0929d2c4ae to your computer and use it in GitHub Desktop.
Save emlyn/6097b454ad0929d2c4ae to your computer and use it in GitHub Desktop.
From my first attempt at live coding, at the SwiftKey music night.
use_bpm 130
live_loop :tick do
root, type = [[:d4,:m7],[:g4,:dom7],[:c4,:M7],[:f4,:M7],[:b4,:'m7+5'],[:e4,:dom7],[:a4,:m7]].tick(:tick)
cue :boom, root: root, type: type
with_fx :reverb, amp: 2 do
sample :drum_cymbal_closed, amp: 3
sleep 0.5
3.times do
sample :drum_cymbal_closed
sleep 0.5
end
uncomment do
sample :drum_cymbal_closed, amp: 2
sleep 0.5
3.times do
sample :drum_cymbal_closed
sleep 0.5
end
end
end
end
live_loop :tock do
sync :tick
uncomment do
if bools(1, 0).tick(:tock) then
sample :drum_bass_hard, amp: 2
sleep 1
else
sample :drum_bass_hard, amp: 2
sleep 0.5
sample :drum_bass_hard, amp: 2
sleep 0.5
end
if one_in(4) then
sample :drum_cymbal_open
else
sample :drum_snare_hard
end
sleep 1
end
end
live_loop :buzz do
data = sync :boom
uncomment do
with_fx :ixi_techno do
with_synth :prophet do
play chord(data[:root],data[:type]), decay: 3
end
end
end
end
live_loop :ding do
data = sync :boom
uncomment do
with_fx :flanger do
with_synth :pretty_bell do
4.times do
n = note(data[:root]) + 24
s = chord(n, data[:type])
play_pattern_timed s.shuffle[0..3], 0.25, amp: 0.7
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment