pattrstorage and 'bad number'

Griotspeak's icon

I have added a pattrstorage to my patch and if i enable parameter mode i get a ': bad number' on initialization.

no particular object receives ':' (i can't make it highlight any object by double clicking on the warning.

If the past few issues i have tried to track down are any indicator, it is something i did... but does anyone have any suggestions? I can post a patch, but it really is the pattrstorage. if i delete it, no orange warning. if i turn parameter mode off, no orange warning. what could it be?

EMV's icon

I've asked about these 'Bad number' messages before on this forum, but I got little response too.
You are one step ahead however, because you found out which object causes the 'bad number' error and in what situation.

Put simply, your pattrstorage object receives something in an input that it doesn't understand. Try printing all the messages that go into your pattrstorage object, and then make some message boxes connected to pattrstorage with the different messages in them so you can try them out separately and see which one is causing the error.

Jeremy's icon

Please send me your patch. I'll try to isolate the issue.

Jeremy

wackazong's icon

Hi Jeremy, I have the same problem. Here is the patch:

Max Patch
Copy patch and select New From Clipboard in Max.

wackazong's icon

BTW, it's a M4L audio device. :)

pid's icon

thanks for posting. i get it quite a lot in m4l. only way to solve? - delete the pattrstorage and make a new one with same name. works every time. of course this is horrid horrid if you've spent the best part of a day carefully dealing with ordering and interpolation types for 60+ parameters. but such is life. mr bernstein, i would love to know how to avoid this too. any genius bernstein magic insight yet?