[PD] abstractions $ variable inconsistency

Matt Barber brbrofsvl at gmail.com
Sun May 4 16:49:49 CEST 2008


Hello,

Please note the most important place you need a $ inside a string is
for dynamic patching within an abstraction, where you sometimes need
to send messages to pd-$0_string .

A work around for 0.39 and lower is something like the following:


[loadbang]
|
[f $0]
|
[makefilename pd-%d_string]


which can be saved in [symbol] or [pack] and used in messages later.
You can use this for other $ variables and strings, of course, but it
seems cleaner and better style to use $ at the beginning of strings
when possible, at least for the time being while many of us are still
using < 0.40.

Thanks,

Matt




>  Date: Sat, 3 May 2008 22:39:22 -0700
>  From: "Jaime Oliver" <jaime.oliver2 at gmail.com>
>  Subject: Re: [PD] abstractions $ variable inconsistency
>  To: " Ricardo Due?as Parada " <rduenasp at gmail.com>
>  Cc: pd-list at iem.at
>  Message-ID:
>         <616283880805032239s4e86d00eq79ebf830dedfb28f at mail.gmail.com>
>  Content-Type: text/plain; charset="iso-8859-1"
>
>  thank you both, that clears things out,
>
>  best,
>
>  J
>
>  On Sat, May 3, 2008 at 9:32 PM, Ricardo Due?as Parada <rduenasp at gmail.com>
>  wrote:
>
>  > That?s right, it works on windows 0.40.3-extended-20080502.
>  >
>  > _Ricardo
>  >
>  > 2008/5/3 Andy Farnell <padawan12 at obiwannabe.co.uk>:
>  >
>  >
>  >> $ is only understood within a string > 0.39, otherwise
>  >> the string must start with $, so it's a version thing.
>  >>
>  >> On Sat, 3 May 2008 20:37:36 -0700
>  >> "Jaime Oliver" <jaime.oliver2 at gmail.com> wrote:
>  >>
>  >> > Hello all,
>  >> > I think I have encountered a strange cross-platform (or cross-version)
>  >> > inconsistency, maybe someone can correct me:
>  >> >
>  >> > I have an abstraction:
>  >> >
>  >> > [abs 1] //// abs is the name of the abstraction and 1 is an argument
>  >> >
>  >> > and inside it I have:
>  >> >
>  >> > [r on$1]
>  >> >
>  >> > SO, when i send from a message box in the main patch the message:
>  >> >
>  >> > ; on1 5
>  >> >
>  >> > I would expect to receive the number 5 in the abstraction.
>  >> >
>  >> > RESULT
>  >> >
>  >> > In OSX in a powerbook ppc / Pd-0.41-2
>  >> .................................it
>  >> > works perfectly!
>  >> > In Windows XP (64bit quadcore) / Pd-extended-0.39.3 ............it
>  >> doesn't
>  >> > work.
>  >> > It says error: on1: no such object.
>  >> >
>  >> > I will probably try it in fedora tomorrow and let you know...
>  >> >
>  >> > Any ideas why, does this feature usually works for windows users?
>  >> > attached is a small example patch if anyone would like to try...
>  >> >
>  >> > best,
>  >> >
>  >> > J
>  >> >
>  >> >
>  >> >
>  >> > --
>  >> > Jaime E Oliver LR
>  >> >
>  >> > joliverl at ucsd.edu
>  >> > www.realidadvisual.org/jaimeoliver
>  >> > www-crca.ucsd.edu/
>  >> > www.realidadvisual.org
>  >> >
>  >> > 9168 Regents Rd. Apt. G
>  >> > La Jolla, CA 92037
>  >> > USA




More information about the Pd-list mailing list