@lacuna
Why not translate the (up and running?) Max patch 1:1 into Pd? (I can not see the Max screenshot.)
Well this is what I'm doing, though my questions are about parts in max that are done in "Gen" ( hence my question about "detrending" a signal, the max patcher does it this in Gen ), there's a sample counter in the max version using "phasor~" , in Max the right inlet of phasor resets the phase with non-zero signal value, in order to reset the counter, in pd I can't figure out how to achieve this...
What is the overall latency-requirement?
the latency in the max patch is fixed, 256 samples.
Then as the distance from hits to each mic can't be more than 50 centimetres this latency could be dropped to 64 samples I guess ( @ 44100hz )
as for your last questions, "Tzero" is when the hit on the snare is received first, "before" is after the it's been received by all 4 mics.
Do you just need to know which mic onset has been first or do you need inter-mic delay of all 4 mics? Things like that can be done by calculating the cross-correlation, but you have not asked for that, so I assume the Max patch is not doing that.
the goal is to get the "cross-correlation" in order to calculate the position where the snare drum was hit, I think I explained this in a post above. Then my questions are about those max things that are not 1:1 transposable, and that got me lost a bit.
(I can not see the Max screenshot.)
Would you mind helping me achieving this if I post a few screenshots of the max patcher ?
Let me know, I'd start a clean topic about this.
The initial question ( title of this topic ) has been resolved, but leading to other quirks I spent too much time on.