-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathjfstrum.lua
More file actions
57 lines (46 loc) · 913 Bytes
/
Copy pathjfstrum.lua
File metadata and controls
57 lines (46 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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)