Skip to content

Commit

Permalink
Update clockdiv.lua
Browse files Browse the repository at this point in the history
fixes #14
  • Loading branch information
dndrks authored Sep 12, 2023
1 parent c1a6742 commit 4f2afc1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions clockdiv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@
-- out1-4: divided outputs

function newdiv()
for n=1,4 do
output[n].clock_div = windows[win_ix][n]
for n = 1, 4 do
output[n].clock_div = windows[win_ix].v[n] -- changed line
end
end

-- choose your clock divisions
windows = {
public{win1 = {5, 7, 11, 13}}:action(newdiv),
public{win2 = {3, 5, 7 , 11}}:action(newdiv),
public{win3 = {2, 3, 5 , 7 }}:action(newdiv),
public{win4 = {2, 4, 8 , 16}}:action(newdiv),
public{win5 = {4, 8, 16, 32}}:action(newdiv),
public({ win1 = { 5, 7, 11, 13 } }):action(newdiv),
public({ win2 = { 3, 5, 7, 11 } }):action(newdiv),
public({ win3 = { 2, 3, 5, 7 } }):action(newdiv),
public({ win4 = { 2, 4, 8, 16 } }):action(newdiv),
public({ win5 = { 4, 8, 16, 32 } }):action(newdiv),
}
win_ix = 3

function init()
input[1].mode('clock',1/4)
input[2].mode('window', {-3,-1,1,3})
for n=1,4 do
input[1].mode("clock", 1 / 4)
input[2].mode("window", { -3, -1, 1, 3 })
for n = 1, 4 do
output[n]:clock(public.win3[n])
end
end
Expand Down

0 comments on commit 4f2afc1

Please sign in to comment.