Forums > MaxMSP

Sending arguments to an abstraction within poly

July 12, 2011 | 2:20 pm

Hi guys,

Is it possible to send an argument to an abstraction that is within a poly~ object?

I have used the #1 symbol within the abstraction as I want to be able to control the number it represents, hence me not using #0.

If it is possible where would such an argument go? For example:

The abstraction is called sampoly and I want 8 voices with stealing on, so the poly~ object would read:

- poly~ sampoly 8 @steal 1 -

Where would the argument go?

Thanks for any help,

James


July 12, 2011 | 2:54 pm

Check args in poly~ documentation.

Your instance should look like:
poly~ sampoly 8 @steal 1 args first_arg second_arg etc.

p


July 12, 2011 | 3:00 pm

Nice one, cheers Patrick. After messing around with it, I have found you need to put the args message before the @ steal for it to work.

Thanks again


July 12, 2011 | 3:18 pm

You’re right, sorry! I do this mistake all the time and never learn. I though @ttributes could take place anywhere, but it’s not the case.


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