Forums > MaxMSP

stack overflow from string bend

May 30 2010 | 12:32 am

I’m having trouble with a recent revision I’ve made to a patch. The patch is to pitch modulate an audio file saved in a buffer, using pitch scaled from a MIDI note, as well as pitch bend information. What I’m getting is a stack overflow. This may be from the string bend, but I’m not sure (if I knew I’d fix it…). Any help with this, anyone see where I’m slaughtering this patch?
Thanks in advance

-- Pasted Max Patch, click to expand. --

May 30 2010 | 1:17 am

I can’t see anything in that subpatcher that could be causing a stack overflow. Are you sure the error is in this part of your patch?

May 30 2010 | 2:56 am

HI, thanks for looking at this.
The "stack overflow" error pops this patch open, and lists the "route" in the pfft~ gizmo_loadme 4096 4 module as the source.
Note that I have six of these patches "SingerPatchGroove" in my program–one for each string of a MIDI guitar.

May 30 2010 | 6:28 pm

Is a closed feedback loop the most likely cause of a stack overflow? In debugging, should I primarily look for a closed loop I’ve accidentally created? What else is a likely cause? I understand that while the problem may be showing up here, the cause may be elsewhere. Thanks.

May 30 2010 | 9:37 pm

OK, fixed it. It was in the sixth string module, identical to the patch I gave here, except for one slight mis-connection…that created a loop. Thanks for your help, David.

Viewing 5 posts - 1 through 5 (of 5 total)

Forums > MaxMSP