Skip to content

Instantly share code, notes, and snippets.

@mreid
Created March 4, 2025 04:41
Show Gist options
  • Save mreid/fec7eb92b1670684e6e51d56dd3fd391 to your computer and use it in GitHub Desktop.
Save mreid/fec7eb92b1670684e6e51d56dd3fd391 to your computer and use it in GitHub Desktop.
Crow script for Phantasms performance
---strum sequencer for just friends, w/syn, mangrove and crow
--- Adapted from script by WilliamHazard: https://llllllll.co/t/jf-strum/59169
--- Used in https://youtu.be/-j5uSu7hiCo?si=krmbytEQypPDsq5D
s = sequins
a = s{0,3,8,5,10,15,s{19,24,31}}
b = s{1,2,3,-1}
c = s{0,3,8,s{3,5,0,5}}
d = s{0,3,5,15,s{12,17,8,10}}
output[1].slew = .1
output[2].action = ar(1.25,1.5,5)
ii.wsyn.patch(1,1)
ii.wsyn.patch(2,2)
note = function()
ii.jf.play_note(a()/12, 3)
end
withnote = function()
ii.wsyn.play_note(a:step(b())()/12, 1)
end
strum = function()
t = 0.1
tm = 1.15
for i=1,9 do
note()
clock.sleep(t)
t = t * tm
end
end
with = function()
wt = 0.1
wtm = 1.2
for i=1,3 do
withnote()
clock.sleep(t)
t = wt * wtm
end
end
bass = function()
output[1].volts = c()/12
output[2]()
end
lead = function()
for i=1,4 do
output[4].volts = (d() + 12)/12
output[4]()
clock.sync(5)
end
end
rep = function()
while true do
clock.run(strum)
clock.run(with)
clock.run(bass)
clock.run(lead)
clock.sync(8)
end
end
clock.run(rep)
output[3](lfo(5.0, 5.0, 'sine'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment