[PD] How to create an array in Ofelia

Alexandros adrcki at gmail.com
Sat Aug 22 17:37:31 CEST 2020

I'm trying to write some Lua scripts in [ofelia] and I don't know how to
create an array, since arrays in Lua are written with curly brackets,
which are not allowed in Pd.

For example, I'd like to create an array like this:

local tab = {}

and then populate it like this:

for i=1,161
    tab[i] = ofRandom(0,255)

Any ideas?

More information about the Pd-list mailing list