[PD] "argument out of range" when using $1/$2 for send/receive name

Rich E reakinator at gmail.com
Mon Nov 24 13:12:20 CET 2008


I've been messing around trying to get this error message in different
ways.  It does not happen from the native pd number box, but every
other GUI object seems to produce it.

On Mon, Nov 24, 2008 at 10:08 AM, Frank Barknecht <fbar at footils.org> wrote:
> Hallo,
> Rich E hat gesagt: // Rich E wrote:
>
>> I'm getting the following error in the pd window when I try to use
>> send/receive names like $1/$2:
>>
>> error: #1/$2: argument number out of range
>> error: #1/gui/$2: argument number out of range
>
> Are you really using #1 or rather $1 here?

I'm using $ signs, but when the properties dialog has been saved,
closed, and reopened, it is a # sign.

I also received this error with the following send/received names:
error: /insert/$1/send_vol: argument number out of range
error: /insert/$1/gui/send_vol: argument number out of range

Even something like: /$1/yo  produces this error, but it does work still.

Again, when I close the properties dialog and reopen the $ has changed to a #.

> Anyway the error "argument number out of range" usually comes from
> message boxes that get a list which is shorter than the biggest dollar
> variable in it, like this:
>
>  [1 2 3(
>  |
>  [$4(
>
> It generally has nothing to do with send/receive. So I'd recommend to
> look for dollar signs in message boxes and check their inputs.

In this case, should pd just replace the dollar sign with a 0?

> Ciao
> --
>  Frank Barknecht            Do You RjDj.me?          _ ______footils.org__
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>




More information about the Pd-list mailing list