Forums > MaxMSP

trouble with commas in lists for poly~

May 9, 2007 | 2:50 pm

I’m having trouble putting a comma in a message I want to send to
[poly~]. I need to send something of the format [target $1, $2],
however, when I use "," to make it so that the comma will be a part
of the actual message, poly complains about bad arguments. I’ve had
the same problem with [line~], although apparently a 0 in place of the
comma works for that specific object for some reason.

I’ve figured out the solution before, but I keep forgetting what it
was. It’s…annoying

Bryan

http://www.techniquolor.com


May 9, 2007 | 4:08 pm

Not sure if this is your problem but you definitely need to have a space on both sides of the comma, e.g [target $1 , $2]. This has given me grief so many times…


May 9, 2007 | 4:59 pm

yeah, I tried adding spaces but to no avail. I’ve abandoned using the target message, however, I’m running into problems with poly~ in general. I can’t see any problems with the patch, but when I try to play it, I can only get one voice to sound at a time.

Here’s the file. Any help would be appreciated (had to zip it and up instead of txt because of some of the abstracts I use).

http://www.techiquolor.com/files/trigger_finger_box_02.zip

thanks in advance

Bryan

http://www.techniquolor.com


May 10, 2007 | 12:08 am

I’m assuming that you are using poly~ to do voice allocation?

If so, I would recommend using a "prepend note" before the input of
poly~. This will pass everything after "note" to the next non-busy voice.

Hope that helps.

Cheers,
Andrew B.


May 10, 2007 | 9:07 am

Bryan Teoh schrieb:
> I’m having trouble putting a comma in a message I want to send to
> [poly~]. I need to send something of the format [target $1, $2],
> however, when I use "," to make it so that the comma will be a part
> of the actual message, poly complains about bad arguments. I’ve had
> the same problem with [line~], although apparently a 0 in place of the
> comma works for that specific object for some reason.

There is never ever a comma in a message. Commas are used in message
boxes to separate messages from each other… If you have a message box
like [0., 1. 1000] and send this to a line object its the same as
sending first a 0., and then a list 1. 1000…

You have to get these basics into your head… (With the help of
fundamentals/tutorials & topics…)

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


May 10, 2007 | 11:42 am

yes, thanks. I knew that you could send multiple messages with
commas, but it never occurred to me that these commonly used messages
(which almost always occur in the tutorials and help patches in the
same format) worked exactly the same way. it’s great to learn ’cause
knowledge is power, eh? Much gratitude for the help everyone. I’ll
be sure to brush up on my basics before blindly posting in the future
;)

Bryan

On 5/10/07, Stefan Tiedje wrote:
> Bryan Teoh schrieb:
> > I’m having trouble putting a comma in a message I want to send to
> > [poly~]. I need to send something of the format [target $1, $2],
> > however, when I use "," to make it so that the comma will be a part
> > of the actual message, poly complains about bad arguments. I’ve had
> > the same problem with [line~], although apparently a 0 in place of the
> > comma works for that specific object for some reason.
>
> There is never ever a comma in a message. Commas are used in message
> boxes to separate messages from each other… If you have a message box
> like [0., 1. 1000] and send this to a line object its the same as
> sending first a 0., and then a list 1. 1000…
>
> You have to get these basics into your head… (With the help of
> fundamentals/tutorials & topics…)
>
> Stefan
>
> –
> Stefan Tiedje————x——-
> –_____———–|————–
> –(_|_ —-|—–|—–()——-
> — _|_)—-|—–()————–
> ———-()——–www.ccmix.com
>
>


http://www.techniquolor.com

http://www.ksod.net


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