how to strip a bang from a message
Hi,
I'm wondering if there's a way of stripping a bang off a message. I ask this because I want to send messages into an OSC buffer without closing the buffer and sending it.
Thanks!
On 10 juil. 07, at 19:24, Daniel Grigsby wrote:
> Hi,
> I'm wondering if there's a way of stripping a bang off a message. I
> ask this because I want to send messages into an OSC buffer without
> closing the buffer and sending it.
right outlet of [route bang]?
ej
Quote: Daniel Grigsby wrote on Tue, 10 July 2007 10:24
----------------------------------------------------
> Hi,
> I'm wondering if there's a way of stripping a bang off a message. I ask this because I want to send messages into an OSC buffer without closing the buffer and sending it.
>
> Thanks!
----------------------------------------------------
How is the bang getting associated with the message? Could you make a small example patch?
mz
Sure, here's a mini example patch that might help describe what I want to do.
Thanks for the help!
any message, int, float...whatever...will make the bang object light
up. it's not a "bang" message, tho (although what comes out of the
bang object as a result is a "bang" message).
if you connect a bang below the OSC object, you'll see that in fact
no message is being sent until you send it a bang, so not seeing the
problem you are seeing.
David
On Jul 10, 2007, at 11:10 AM, Daniel Grigsby wrote:
>
> Sure, here's a mini example patch that might help describe what I
> want to do.
>
> max v2;
> #N vpatcher 200 399 800 799;
> #P button 82 125 15 0;
> #P window setfont "Sans Serif" 9.;
> #P flonum 41 49 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P window linecount 1;
> #P message 41 73 38 196617 bla $1;
> #P newex 41 171 126 196617 udpsend 127.0.0.1 57120;
> #P newex 41 149 90 196617 OpenSoundControl;
> #P newex 41 97 72 196617 prepend /wt2;
> #P window linecount 2;
> #P comment 102 120 341 196617 a bang comes out with each message
> which will close the OSC buffer and send it. I don't want to send a
> message at every output from prepend.;
> #P connect 5 0 4 0;
> #P connect 4 0 1 0;
> #P fasten 1 0 2 0 46 141 46 141;
> #P connect 2 0 3 0;
> #P connect 1 0 6 0;
> #P pop;
>
> Thanks for the help!
ah, I see. Thanks.
At 12:10 PM -0600 7/10/07, Daniel Grigsby wrote:
>Sure, here's a mini example patch that might help describe what I want to do.
The bang you see with the bang object hanging off of the prepend object is not part of the message. A bang object converts whatever message it receives into a bang.
Here's your patch modified to show the activity a little better:
--
Chris Muir | "There are many futures and only one status quo.
cbm@well.com | This is why conservatives mostly agree,
http://www.xfade.com | and radicals always argue." - Brian Eno