Hey, thanks so much for that detailed explanation.
I was confused because there is no line 94 in my code?!

Either way the args[x+y*8] part is indeed the bit causing grief and isn’t doing what I need (which is to create 64 arguments 1 through 64) to align with an 8x8 grid set by.
Where we have the two 1 to 8 do loops do these iterate to create every combination?

E.g. will you get x1, y1, x2, y1, x3, y1…x2, y2, x3, y2,x4, y2?

Or do you get:
x1, y1, x2, y2, x3, y3?

I appreciate those tips re. where to place the g:refresh() etc., still very much learnng here. I also will take on board about using the triple backquotes. I see now you said that above in your first message but I didn’t know you meant on the forum!

Cheers
Geoff

EDIT: aha! I figured it out.
I needed it to be args[(x+(y*8)-8)+2]
Fantastic, I think this is now doing what I need :slight_smile:
Now, for the Arc :wink:

1 Like

One last question for now please. Some of my osc messages are coming in as floats but I think Norns is expecting integers as it throws an error. Is there a way to either convert to int or to tell Norns to accept float?
Cheers

if you have a float x, you can wrap it in math.modf(x) to truncate (math.modf(2.9) will return 2) or util.round(x) to round to the nearest whole int (util.round(2.9) will return 3).

unsure which argument in g:led(x+x_off,y+y_off,args[x+y*8]) you’re passing floats to, but messing around with wrapping the arguments in either utility should help!

1 Like

Ace, that works as expected!
Here is some spectral FFT viewed through Grid.

3 Likes