Hi there,
I'd need to apply some math function (of the index) to every element of a given (4096 points long) array. My PD skills are a bit rusty, so I thought it would be a good advice to ask for pointers here.
Of course I could set up a pointer structure using a [metro 1], it would cost me around 4 seconds to perform it. Or maybe should I not use a [metro 1] and "drive" the counter structure using a [bang] every time the mathematical operation has just been performed on the current index, in order to speed up things, I would call this "freewheeling". It would be fast enough for me. Or maybe this would be "too fast" and lead to some kind of error or pd freeze because it is nearly as connecting a [float] output directly to its input. I can definitely test that.
But I'm curious about the possibility to perform this in the signal domain, possibly "overclocking" it in a subpatch,
This leads me to my question: is there a "classic", "neat" way of doing this that would guarantee that each and every sample (index) will be processed? I mean, if I choose to use a [line~] whose output is to be multiplied by the length of the array to "drive" a [tabread] / [tabwrite] pair, won't there be the risk for rounding problems leading to "skipped" or "read twice" indexes in the array?
Of course there is probably another way of doing this, I'd be glad to hear it from you.
Thank you very much,
Nau



