Stereo-gain attempt crashes Max

Aug 20, 2010 at 8:22pm

Stereo-gain attempt crashes Max

Hi!

I’ve tried to make a stereo-[gain~] where the two sliders always follows each other, by patching the Slider Value of the first [gain~] to Input of the other and vice versa (see below).

A touch on one of the sliders makes Max (5.1.4) crash.

1) Why is that?
2) Any suggestions on a stereo-gain’er? :-)

– Pasted Max Patch, click to expand. –
#51899
Aug 20, 2010 at 8:27pm

It’s because you’re creating a feedback loop/stack overflow. When you touch one of the sliders, you start an infinite loop going because they both feed into each other.

You can get around this by using the set message into gain~, like this:

– Pasted Max Patch, click to expand. –
#186242
Aug 20, 2010 at 8:37pm

He meant this.

– Pasted Max Patch, click to expand. –
#186243
Aug 20, 2010 at 8:40pm

haha, oops :) thanks Matt

#186244
Aug 20, 2010 at 9:28pm

Thanks a lot! Works! :-)

But usually a feedback loop/stack overflow doesn’t crash Max, does it?

#186245
Aug 20, 2010 at 9:33pm

In Max5 i’ve found that ‘non-infinite’ feedback loops (unlike your slider1 to slider2 to slider1 loop), for example something that depends on a metro or other timing object, does not crash Max; it merely pauses it and issues the stack overflow error. I haven’t crashed Max with something like your issue though (and obviously I’m not keen to try it)

Brendan

#186246
Aug 20, 2010 at 10:39pm

You shouldn’t crash, you should get a yellow warning bar along the top of the screen until you resume the schedular. Are you using the latest incremental?

#186247
Aug 21, 2010 at 11:53am

No yellow warning bar. It just crashes.

And yes, I’m using the newest (Max5_42462)…

#186248
Aug 21, 2010 at 6:58pm

it doesn’t crash for me either. You might also want to have a look to live.gain~ if you want to control a stereo signal.

#186249
Aug 23, 2010 at 11:35am

Thanx! I’ll check that one out. Are there any disadvantages in using these new live-objects (over the traditional Max-objects), with no live-connection in mind? …I’m thinking in terms of size (when building) or being heavier in use, because of live-communication-possibilities or something?

#186250
Aug 23, 2010 at 11:39am

Nothing that I can think of, those are just normal Max objects with enhanced functionalities to communicate with live in the MfL context.

#186251
Aug 25, 2010 at 7:22am

Thanx! Wonderful! :-D

#186252

You must be logged in to reply to this topic.