Forums > MaxMSP

Is there a "dummy" object in Max?

April 10, 2008 | 3:51 pm

I feel a bit lonely here with my basic questions but I work hard to develop more interesting problems ;-)

But for now: Is there a kind of dummy object available, which I can use to collect and organize my connections? Something that does nothing but passing all kinds of messages through. Or one for audio and one for others.


April 10, 2008 | 3:55 pm

[t l] or trigger list (l) does that. Just one in one out. Something like that?

_
johan


April 10, 2008 | 4:01 pm

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#N vpatcher 20 74 620 474;
#N comlet out;
#P outlet 146 178 15 0;
#N comlet in;
#P inlet 146 80 15 0;
#P connect 0 0 1 0;
#P pop;
#P newobj 136 180 50 196617 p dummy;
#P window clipboard copytext "p dummy" #E;
#P window clipboard copycount 1;


April 10, 2008 | 4:06 pm

Hi

You can also use this very special trick :D

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 85 169 32 196617 print;
#P flonum 112 57 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 64 57 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 120 98 120 196617 pass everything you like;
#N vpatcher 68 74 198 214;
#P outlet 13 52 15 0;
#P inlet 13 27 15 0;
#P connect 0 0 1 0;
#P pop;
#P newobj 85 136 37 196617 p thru;
#P window linecount 2;
#P comment 128 136 100 196617 < = open me to see the magic trick;
#P connect 1 0 5 0;
#P connect 4 0 1 0;
#P connect 2 0 1 0;
#P connect 3 0 1 0;
#P window clipboard copycount 6;

You can even save the trick as an abstraction ;)

Cheers !


April 10, 2008 | 4:08 pm

Or you could create an abstraction, save as dummy.pat and put it
somewhere in your search path.

#P outlet 4 46 15 0;
#P inlet 4 25 15 0;
#P connect 0 0 1 0;
#P window clipboard copycount 2;


April 10, 2008 | 5:45 pm

Quote: Peter Ostry wrote on Thu, 10 April 2008 08:51
—————————————————-
>
> But for now: Is there a kind of dummy object available, which I can use to collect and organize my connections? Something that does nothing but passing all kinds of messages through. Or one for audio and one for others.
>
>
—————————————————-

"nothing" is one of the gems of the CNMAT MMJ Depot:

http://cnmat.berkeley.edu/patch/2530

mz


April 10, 2008 | 6:11 pm

just make an abstraction with an inlet and an outlet that are connected?

On Apr 10, 2008, at 1:45 PM, mzed wrote:

>
> Quote: Peter Ostry wrote on Thu, 10 April 2008 08:51
> —————————————————-
>>
>> But for now: Is there a kind of dummy object available, which I can
>> use to collect and organize my connections? Something that does
>> nothing but passing all kinds of messages through. Or one for audio
>> and one for others.
>>
>>
> —————————————————-
>
> "nothing" is one of the gems of the CNMAT MMJ Depot:
>
>
> http://cnmat.berkeley.edu/patch/2530
>
>
> mz
>
> –
> || michael f. zbyszynski — molecular gastronimist
> || http://www.cnmat.berkeley.edu/
> || http://www.mikezed.com/
>
>
>


April 10, 2008 | 6:15 pm

Quote: Peter Ostry wrote on Thu, 10 April 2008 08:51
> —————————————————-
>>
>> But for now: Is there a kind of dummy object available, which I can use
>> to collect and organize my connections? Something that does nothing but
>> passing all kinds of messages through. Or one for audio and one for
>> others.

FWIW, I use [t l] (trigger list), which works for passing anything
through. +~ for audio.

-Joshua


April 10, 2008 | 9:39 pm

[zl reg] left inlet


April 11, 2008 | 2:47 am

Thank you all, I like the patcher with the inlet and outlet most (at least in a mixed patch) because it works for numbers and signals.


April 11, 2008 | 7:21 am

Quote: Peter Ostry wrote on Fri, 11 April 2008 04:47
—————————————————-
> Thank you all, I like the patcher with the inlet and outlet most (at least in a mixed patch) because it works for numbers and signals.
>
—————————————————-

[t l] works for signals too.

_
johan


April 11, 2008 | 8:02 am

Quote: jvkr wrote on Fri, 11 April 2008 09:21
—————————————————-
> [t l] works for signals too.
—————————————————-

Ok, then you won ;-)

I believe it is better (performance-wise) not to redirect the program through an included patch. This may be not true for Max/MSP, don’t know …


April 11, 2008 | 9:37 pm

Quote: Peter Ostry wrote on Thu, 10 April 2008 19:47
—————————————————-
> Thank you all, I like the patcher with the inlet and outlet most (at least in a mixed patch) because it works for numbers and signals.
>
—————————————————-

In certain cases with signals, this doesn’t work out the way you might hope. There is a full explanation in nothing.help, (http://cnmat.berkeley.edu/patch/2530) but the short version is that inlets do not do any summing. In other words, if you have 10 signals in and 10 signals out to the patcher you describe, than Max will see 100 signal patch cords. If they go through +~, then there are only 20.

mz


April 14, 2008 | 6:45 am

Joshua Kit Clayton schrieb:
> FWIW, I use [t l] (trigger list), which works for passing anything
> through. +~ for audio.

Sorry, it’s not true, though it works in many cases:

#P window setfont "Sans Serif" 9.;
#P number 186 156 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 146 156 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 146 128 50 196617 route int;
#P number 108 156 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 68 156 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#N vpatcher 20 74 620 474;
#P outlet 93 92 15 0;
#P inlet 93 44 15 0;
#P connect 0 0 1 0;
#P pop;
#P newobj 146 93 50 196617 p dummy;
#P newex 68 128 50 196617 route int;
#P number 68 62 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 68 93 50 196617 t l;
#P connect 1 0 0 0;
#P fasten 1 0 3 0 73 84 151 84;
#P connect 3 0 6 0;
#P connect 6 1 8 0;
#P connect 6 0 7 0;
#P connect 2 0 4 0;
#P connect 2 1 5 0;
#P connect 0 0 2 0;
#P window clipboard copycount 9;


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


April 14, 2008 | 6:59 am

mzed schrieb:
> In other words, if you have 10 signals in and 10 signals out to the
> patcher you describe, than Max will see 1000 signal patch cords. If
> they go through +~, then there are only 20.

I guess you mean 100 patch cords which would create also 100 addition
operations – for each destination sum ten inputs, versus sum one time
ten inputs and then send the result to the destinations…

I doubt that the patch cord itself will eat CPU…

The patch thru is exactly like a direct connection. The unlikely
scenario you describe obviously is a good point for optimisation though…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


April 14, 2008 | 7:01 am

mzed schrieb:
> In other words, if you have 10 signals in and 10 signals out to the
> patcher you describe, than Max will see 1000 signal patch cords. If
> they go through +~, then there are only 20.

I guess you mean 100 patch cords which would create also 100 addition
operations – for each destination sum ten inputs, versus sum one time
ten inputs and then send the result to the destinations…

I doubt that the patch cord itself will eat CPU…

The patch thru is exactly like a direct connection. The unlikely
scenario you describe obviously is a good point for optimisation though…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


April 14, 2008 | 7:26 am

mzed schrieb:
> "nothing" is one of the gems of the CNMAT MMJ Depot:

And it has a certain overhead on load, it even contains a uc_license
object, though even in the U.S. I doubt this sort of patch is subject to
any copyright (exept for the copyright text itself… ;-)
I have a version I use as type preserving trigger, called obviously
"St". It will add a number of outlets, or in the version of St.hru it
will also add inlets… Both add also overhead on load, as they have to
execute some scripting for the ins and outs…
All of these are toys coming out of the natural play instinct of Maxers…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


April 14, 2008 | 8:06 am

On 14 avr. 08, at 09:26, Stefan Tiedje wrote:

> And it has a certain overhead on load, it even contains a uc_license
> object, though even in the U.S. I doubt this sort of patch is
> subject to any copyright (exept for the copyright text itself… ;-)
> I have a version I use as type preserving trigger, called obviously
> "St". It will add a number of outlets, or in the version of St.hru
> it will also add inlets… Both add also overhead on load, as they
> have to execute some scripting for the ins and outs…
> All of these are toys coming out of the natural play instinct of
> Maxers…

It sounds like everyone like to make objects which does nothing;-)
I’ve one too in js, called ej.nthru.

ej


Viewing 18 posts - 1 through 18 (of 18 total)