I've got a strong procedural-programming background and am having a bit of trouble with the new paradigm (from what I understand, this is pretty common). The program I'm building takes 100 samples of an audio file, does some processing, rinses and repeats until it's gon through an entire audio file.
I'm having difficulty with the outer loop for this... specifically I'm getting stack overflows. I suspect this is because MAX resolves things in a depth-first manor, and my loop just goes too deep. I use sfinfo~ to get the length of the file, then increment a value object by 12.5 (100 samples in 8khz is 12.5 ms). Then I'm using an if to test whether or not I've read to the end of the file.... and it'll overflow every time. I've debugged and the counter is definitely incrementing properly.
Am I trying to use square pegs in a round hole?