Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
add jfstrum
  • Loading branch information
williamthazard authored Oct 22, 2022
1 parent e739198 commit 5ffd185
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions jfstrum.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---strum sequencer for just friends, w/syn, and crow

s = sequins

a = s{0,3,8,5,12,15,s{19,24,31}}
b = s{1,2,3,-1}
c = s{0,3,8,s{3,5,0,5}}

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

rep = function()
while true do
clock.run(strum)
clock.run(with)
clock.run(bass)
clock.sleep(5)
end
end

clock.run(rep)

0 comments on commit 5ffd185

Please sign in to comment.