Bang filter? Very annoying, probably stupid problem.

PBeast's icon

ok, i admit a mistake in that "match" does seem to filter a bang out,
but there must be an easier way?

PBeast's icon

Ok THIRD TIME LUCKY POSTING THIS QUESTION!!!!

IS there any way to filter out bangs, whilst allowing valuable information like number, to pass through.

In this patch, any change in the number box at the top sends out a bang. The match at the bottom blocks these bangs until the "one" is detected, at which point it lets the one through, along with all the bangs. Instead of just a single bang.
Please help this tired and amateur max learner out.
Sorry if this is short, it'sthe 3rd time i've typed this out. my computer is hobbling.

Max Patch
Copy patch and select New From Clipboard in Max.

Pierre Alexandre Tremblay's icon

Please do not yell. your solution:

route bang

take the right outlet.

pa

PBeast's icon

Thank you.
I'll go try that. I'd tried three times to post correctly, and the server/my computer/me kept messing up. I was frustrated, and yes, I shouted.

nick rothwell | project cassiel's icon

On 24 Feb 2006, at 18:15, Philip Reeder wrote:

> IS there any way to filter out bangs, whilst allowing valuable
> information like number, to pass through.

[sel bang] ?

nick rothwell -- composition, systems, performance -- http://
www.cassiel.com

PBeast's icon

please please forgive me for being stupid.

I did what both you guys suggested, and it didn't act as planned.

I can get a number through, but I want the number, without all the bangs that come through with it. One is fine, i'd expect that because the number changed. But once it isn't changing any longer, I'd like the bangs not to come through.

Thanks again,
Phil

This code has the route object in, with route bang as suggested.

Max Patch
Copy patch and select New From Clipboard in Max.

nick rothwell | project cassiel's icon

On 24 Feb 2006, at 18:48, Philip Reeder wrote:

> I did what both you guys suggested, and it didn't act as planned.

What are we supposed to be looking for? I see a [>] (which puts out 0
or 1) connected to a [route bang].

nick rothwell -- composition, systems, performance -- http://
www.cassiel.com

Emmanuel Jourdan's icon

you're looking for change, aren't you? By the way, your patch have
also problems with integer operations: you use ">" in integer mode,
and a integer number box to works with floats...

ej

*V*I*R*G*O*'s icon

> I did what both you guys suggested, and it didn't act as planned.
>
> I can get a number through, but I want the number, without all the bangs
> that come
> through with it. One is fine, i'd expect that because the number changed.
> But once it isn't
> changing any longer, I'd like the bangs not to come through.

You need to use the [change] object. See my modification of your example
patch below.

Good luck,
*V*I*R*G*O*

Max Patch
Copy patch and select New From Clipboard in Max.

vade's icon

use int after the numbox

ie:

integer number box
|
[int]

int will be able to store a number, bang will send it.

read the tutorials. Almost everything in max sends bangs. its how it
works.

v a d e //

www.vade.info
abstrakt.vade.info

I LIVE! I LIVE! I LIVE! I LIVE! I LIVE! I LIVE! I LIVE! I LIVE! I
LIVE! I LIVE! I LIVE! I LIVE!

You will not be saved by the Holy Ghost. You will not be saved by the
God Plutonium.

In fact, YOU WILL NOT BE SAVED!

Roman Thilenius's icon

i have not looked at yourt patch, but maybe there
is one number you do not need ?
if you do not need "i 10,000" for example you
could just ue a [route 10000] to filter out bangs.

Stefan Tiedje's icon

Philip Reeder wrote:
> Hello, I've been using max for a little while, and there's one
> problem I keep coming up against.
>
> Bangs seem to flow through the whole of a patch. Is there any way to
> filter out a bang (that might be caused by a metro at the top of a
> patch for instance), yet allow numbers etc. to pass through?

Did you ever read the help file of button? I guess not!
This is very basic. button accepts anything and converts it into a bang.
Your example patch seems to have nothing to do with the above question,
none of the patchchords does carry a bang and toggle never outputs a bang.
If you want to filter any type, look into route. [route bang] for
example would filter bangs.
I added some comments into your patch, which might explain some of your
confusion...

Stefan

Max Patch
Copy patch and select New From Clipboard in Max.

--

[][] [][][] [][] [][][]
[][][][][][][][][][][][][][][]

Stefan Tiedje
Klanggestalter
Electronic Composition
&
Improvisation

/~~~~~
\ /|() ()|
))))) )| | |( \
/// _/)/ )))))
___/ ///

-------------------------x----
--_____-----------|-----------
--(_|_ ----|-----|-----()----
-- _|_)----|-----()-----------
----------()------------x-----

14, Av. Pr. Franklin Roosevelt,
94320 Thiais, France
Phone at CCMIX +33-1-49 77 51 72

Roman Thilenius's icon

> Did you ever read the help file of button? I guess not!
> This is very basic.

that is like the 7th time this month you tell
someone to rtfm, did you notice that? :)

Stefan Tiedje's icon

Roman Thilenius wrote:
> that is like the 7th time this month you tell
> someone to rtfm, did you notice that? :)

Seems to be necessary, this thread went on too long for such a thing...
(Und um das Gleiche durch die Blume (Kaffee) zu sagen scheint ja auch
nicht immer zu klappen... ;-)

Stefan

--

[][] [][][] [][] [][][]
[][][][][][][][][][][][][][][]

Stefan Tiedje
Klanggestalter
Electronic Composition
&
Improvisation

/~~~~~
\ /|() ()|
))))) )| | |( \
/// _/)/ )))))
___/ ///

-------------------------x----
--_____-----------|-----------
--(_|_ ----|-----|-----()----
-- _|_)----|-----()-----------
----------()------------x-----

14, Av. Pr. Franklin Roosevelt,
94320 Thiais, France
Phone at CCMIX +33-1-49 77 51 72