Hi all.
following my questions about tartini and other pitch detectors, I'm thinking of implementing the low level algorithm myself.
i had some trouble before comparing csound to a standard programming language. treating ftables like arrays is usually buggy, or the flow is just unnatural to me.

so i'd like to hear some thoughts on how is best to implement:
1) correlation function of moving indexes - i thought of using the delay command but what it i want to create a product like:
sum(t->t+k)Signal^2(t)*(sum(t+k+m->t+m)Signal^2(t)) or something of that natue. what is the natural way to achieve this? will i have to load the relevant signal section into ftable and reverse?
2)how would you implement (strategically)  a peak picking algorithm - that has many repetitions over the data and should be done with a karg=karg+1 manner and not a phasor manner (or should it).
3) would all these calculation (karg=karg+1) should be at a-rate? because i would like to output pitch every k-rate, so lets say there are 1200 a-cycles in a k-cycle ( 33Hz) am i going to be limited to 1200 cycles of calculations? (i.e. a 300 dots array would be scanned 4 times maximum)

so how to go about this?

thanks
Oro