Better HN
topnewbestaskshowjobs
Log inSign up

whereisbambi

1 karma · joined Nov 13, 2022 (4y ago) · 1 submissions

Submissions

comment 4y ago · link · parent

Lua:

function b2n(boo) return boo and 1 or 0 end

function eu(index,length,beats,offset) return b2n((((index + offset) * beats) % length) < beats) end

function euquence(length,beats,offset) local l = {} for i=0,length do local r = eu(i,length,beats,offset) table.insert(l,r) end return table.concat(l,’ ‘) end