Forums > MaxMSP

abstraction argument use

April 4, 2010 | 6:58 am

Hey out there,
I’m fairly new at this feature, but have gotten it to work before. I’ve made an abstraction and it takes a symbol as an argument. When that argument is entered/changed, I want to use it a couple of patchers down and send to trigger. But I’m having a problem actually getting the symbol to the trigger object. What exactly is the best way to introduce this symbol into a subpatcher and actually get it in there? I use a msg box with #1, and the symbol gets there fine, but doesn’t actually leave the box. Tried a few other things, as well. Of course, if the argument is a number, int/float boxes work fine. Seems like kind of dumb problem, maybe I’m missing something obvious?

Thanks,
Brian


April 4, 2010 | 7:44 am

The argument will only *set* a message box, not cause output. You probably need to devise a method to bang the message box after it has been set with your symbol argument.


April 4, 2010 | 4:19 pm

look up the patcherargs object.


April 5, 2010 | 1:26 pm

in case i get you right, the solution is

1. [loadbang] for initialisation (loading the parent patcher or changing the argument by typing)

and

2. an extra input method for symbols coming via an inlet (i.e. which is different from the
methode the arguments are used in the subpatch.)

-110


May 12, 2010 | 4:37 am

Belated thanks to all! I looked at [patcherargs] at one point awhile ago, but thought this method would be the simpler way to do something simple. I’ll check it again. I’ve come up with ways to bang the argument out before, just thought there might be a better way…


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