have found a solution that seems to work.
not sure i’m entirely happy with what it is doing,
as it is shifting the index each time it runs, until
there are no more items and thus it returns nil – at
which point i get it to regenerate the table, and it
starts over. no idea what this would do with timing,
but the result is a kind of ‘active step’, like on
the volca sequencers.
function runCallback()
local start = tbl_mods[ 1 ]
if start ==nil then
multiselect() --get current table again
start = first --first index in multiselect
end
console(String("start="..start))
-- -----------------------------------
for i,v in ipairs(tbl_mods) do
tbl_mods[ i ]=tbl_mods[ i+1 ]
end --runs through entire table, moving all index +1, until [ 1 ] is nil
-- ----------------------------------
console(String("done")) --marks each timer callback
panel:getComponent("display5"):setPropertyString("uiLabelText",""..start)
end
-
This reply was modified 6 years, 1 month ago by human fly. Reason: typo