Bug? Loadbang twice when creating poly~ via scripting

Toshiro Yamada's icon

Hi,

I noticed today that when I make a poly~ using [script newobject ...] or [script newdefault ...] to thispatcher, loadbang bangs again for no reason. If [script newobject ...] message box is directly connect to loadbang, it's fine, but If I create poly~ later, I get another bang from loadbang.

I attached a simple patch demonstrating this bug. There's a counter connected to loadbang, and you'll notice that when the patch open you get "loadbang 0" in the Max window. When you click on the message box to create poly~, you will get "loadbang 1" in the Max window. The second time you create a poly~, loadbang doesn't bang again. Close and reopen the patch and same thing happens.

I can work around by using [onebang 1] after loadbang, but that seems more of a hack... If anyone can comment on this, I'd appreciated.

I'm using Max 5.1.4 on OS X 10.6.3.

Thanks,
Toshiro

698.LoadbangTwice.zip
zip
Dave Holton's icon

This is a 5.1.4-specific issue and is currently being looked into. Thanks for the clear example. -Dave

g_net55's icon

even if you send a voices message to a poly, you get an other loadbang.
example attached.

831.LoadbangTwiceSimple.zip
zip
g_net55's icon

ther is also a bug with patcherargs.

if you set the voices of a poly~, you get an additional loadbang and a patcherarg message in any subpatcher.

example attached.

with this version of max i feel a bit like a beta tester :-)

gisela

877.LoadbangTwiceSimplePatcherargs.zip
zip
Dave Holton's icon

Thanks for the reports. All of the aforementioned poly~/loadbang issues will be fixed in the next release. If you find any other related misbehaviors, you can post them here.

AudioMatt's icon

+10 for fixing this. While, I kind of understand that max is kind of unscoped, this caused my about a week of pain.

To be clear I'm taking about dynamically loading a patch in poly~ with a [loadmess] inside setting off loadmess objects outside.