Hi there,
I'm having troubles using the $0- thing in a abstraction containing two tabread4~ objects that have to keep their identity when several instances of the abstraction are oppened (I mean, not clash identities with the other tabread4~ objects in the other abstractions in a patch).
Here is the part of the patch that causes problems:
I get a error message saying: "error: 0-a: no such table", although I' ve created them. When I use the "find last error" function, it points to the soundfiler object.
Does anyone have a clue to what's going on in this patch?
Thank you!
David S
http://www.flickr.com/photos/schafferdavid/ http://audioblog.arteradio.com/David_Schaffer/
I think the problem there is that you have $0 in the message object. You can't use $0 in messages. You need to replace $0 in the message with $1 (or $2, depending on where in the message the variable is), put a [f $0] upstream of the message ( to "capture" the actual number given to the particular instance of $0) and then use [trigger] and [pack]. For example:
[openpanel] | [trigger s b] | | | [f $0] | | [pack s f ] | [read -resize $1 $2-a $2-b (
Hope this makes sense.
JN
On Wed, Jan 7, 2009 at 1:52 PM, David Schaffer schafferdavid@hotmail.comwrote:
Hi there,
I'm having troubles using the $0- thing in a abstraction containing two
tabread4~ objects that have to keep their identity when several instances of the abstraction are oppened (I mean, not clash identities with the other tabread4~ objects in the other abstractions in a patch). Here is the part of the patch that causes problems:
[image: Dolarsign problem...]
I get a error message saying: "error: 0-a: no such table", although I' ve created them. When I use the "find last error" function, it points to the soundfiler object.
Does anyone have a clue to what's going on in this patch?
Thank you!
David S
http://www.flickr.com/photos/schafferdavid/ http://audioblog.arteradio.com/David_Schaffer/
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hallo, Joe Newlin hat gesagt: // Joe Newlin wrote:
I think the problem there is that you have $0 in the message object. You can't use $0 in messages. You need to replace $0 in the message with $1 (or $2, depending on where in the message the variable is), put a [f $0] upstream of the message ( to "capture" the actual number given to the particular instance of $0) and then use [trigger] and [pack]. For example:
[openpanel] | [trigger s b] | | | [f $0] | | [pack s f ]
Btw. you can also directly use [pack s $0] here. I also often use [list append $0] when building messages that need the value of $0.
Frank
Joe Newlin wrote:
I think the problem there is that you have $0 in the message object. You
apart from this (which answers the question i guess), i would like to ask, why this can only be illustrated by attaching uncompressed bmp-files.
a quick size comparision: bmp (uncompressed): 508050 bytes jpg (compressed): 35535 bytes png (compressed): 15083 bytes pd (uncompressed): 421 bytes
the original mail had 2 identical copies of the image, the first reply carried a 3rd copy. so including base64 encoding, these 2 emails ate away more than 2MB.
shall i re-introduce a size-limit for posts to the list?
sorry for the usual rants :-)
fgamrs IOhannes
On Wed, 2009-01-07 at 22:52 +0100, David Schaffer wrote:
Hi there,
I'm having troubles using the $0- thing in a abstraction
containing two tabread4~ objects that have to keep their identity when several instances of the abstraction are oppened (I mean, not clash identities with the other tabread4~ objects in the other abstractions in a patch). Here is the part of the patch that causes problems:
Dolarsign problem...
I get a error message saying: "error: 0-a: no such table", although I' ve created them. When I use the "find last error" function, it points to the soundfiler object.
Does anyone have a clue to what's going on in this patch?
yup. you're using $0 inside a message box. $0 in a message box has no special meaning, since dollar variables have a different meaning in messageboxes: $n gets replaced by the nth element of the incoming message. there is no use in using smaller n than 1.
you would need something like this in order to compose a message containing the $0 value of the patch:
[bng] | [$0] <- not a messagebox !!! | [$1-bla( <- this is a messagebox
this would give you something like '1023-bla'
roman
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de