Then I'd have to have some idea what the format of the messages will be, and what will be receiving them. If you want certain fields to be optional, perhaps the lines in your text file could use indices; then you could use [list split] to break each line into lists of 2 items, and send these to [; $1-receive $2(. Then if you want no message sent to 4-receive, you don't put "4" in an odd-numbered spot. How objects respond to messages depends on the individual objects, and I doubt anyone will volunteer to recode all of them to ignore a certain message.
-Chuckk
On 2/17/07, David F. Place d@vidplace.com wrote:
Nope. That's not what I want. I want the subgraph in question not to be perturbed at all. Sending a bang to a [float] object and then having it forward a message of its current value is a different effect. I want no message to be sent.
On Feb 17, 2007, at 5:21 PM, Chuckk Hubbard wrote:
You could use "bang" for the empty message and have all fields filtered through [float] or [symbol] or [list] or whatever. Then if they receive "bang" they just output their existing value.
-Chuckk
On 2/17/07, David F. Place d@vidplace.com wrote:
Maestri:
I would like a special message (let's call it "noop") which when sent does nothing. (That is to say, sending it would be like not sending it.) This would be useful in automation. For instance, I may have a program which generates a bunch of events which I will trigger using [textfile]. Some of the fields will not be updated in a given event. In that case, it would like to be able to write "noop" in that field.
Surely such a thing exists and I haven't found it yet. Feel free to berate me if it is right under my nose.
Cheers, David
--o-------o-o-o---o-o-o--- David F. Place mailto:d@vidplace.com
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
--o-------o-o-o---o-o-o--- David F. Place mailto:d@vidplace.com
for control data, i just use -1 as a 'noop' , and then [route -1]..all the data except -1 comes out the right outlet
Except that, with a list, route only works on the first element; and [unpack] won't accept a float as a symbol or a symbol as a float. One solution would be to use 'noop' in place of symbols and '-1' or any number you're not likely to need in place of numbers. Or heck, keep numbers and symbols in different textfiles...
-Chuckk
On 2/17/07, hard off hard.off@gmail.com wrote:
for control data, i just use -1 as a 'noop' , and then [route -1]..all the data except -1 comes out the right outlet