Created
June 29, 2025 00:16
-
-
Save mreid/6b490dbf7391a694ac9ee422308b5a1e to your computer and use it in GitHub Desktop.
Phantasms Crow Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- Phantasms | |
--- Used to create this piece: https://www.youtube.com/watch?v=-j5uSu7hiCo | |
--- Adapted from the `jf_strum.lua` strum sequencer for just friends, w/syn, and crow | |
--- https://llllllll.co/t/jf-strum/59169 | |
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