pluggo and closebang

Apr 24, 2006 at 12:13pm

pluggo and closebang

I’ve got a routine that I run when my patch closes (it saves a hashMap as a cache file) which works great in a standalone or in Max itself. The problem is, when loaded into a pluggo, the closebang goes off every time the plug-in window is closed. Is there a way to send a bang when the host quits?

J.

#25620
Apr 24, 2006 at 12:22pm

There’s a “secret” object called “freebang” which only triggers when a
patch is freed (that is, when the entire patch is closed). This might
work for what you are doing.

jb

#75614
Apr 24, 2006 at 1:59pm

Aack! “Secret” objects!

Like we didn’t have enough on our plates trying to keep track of all the “leaked” ones! ;-)

thanks, I’ll give that a shot.

cheers,

J.

#75615
Apr 25, 2006 at 9:15am

Quote: jbmaxwell@btinternet.com wrote on Mon, 24 April 2006 07:59
—————————————————-
> Aack! “Secret” objects!
>
> Like we didn’t have enough on our plates trying to keep track of all the “leaked” ones! ;-)
>
> thanks, I’ll give that a shot.
>
> cheers,
>
> J.

yeah there must be a hole somewhere at cycling 74.

am i the only one here who already has MAX/MSP v.5.2.3 ?

#75616
Apr 26, 2006 at 9:07am

Jeremy Bernstein wrote:
> There’s a “secret” object called “freebang” which only triggers when a
> patch is freed (that is, when the entire patch is closed). This might
> work for what you are doing.

And here is a help file, to encourage cycling to include it into the
docs… or at least into the distribution…

Stefan

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 69 149 50 196617 closebang;
#P window linecount 3;
#P comment 130 65 149 196617 like closebang , but only if the patcher
is freed , not on closing the window;
#P window linecount 1;
#P message 216 149 50 196617 loadmess;
#P message 164 149 50 196617 loadbang;
#P message 121 149 40 196617 active;
#P hidden newex 121 175 64 196617 prepend help;
#P hidden newex 121 198 45 196617 pcontrol;
#P window setfont “Sans Serif” 18.;
#P comment 15 10 106 196626 freebang;
#B frgb 21 56 9;
#P window setfont “Sans Serif” 9.;
#P comment 15 35 292 196617 Send a bang when a Patcher window is about
to be freed;
#P user panel 10 5 400 50;
#X brgb 255 247 207;
#X frgb 0 0 0;
#X border 0;
#X rounded 0;
#X shadow 0;
#X done;
#P newex 69 64 55 196617 freebang;
#B color 5;
#N vtable 128 30 68 240 235 0 128;
#P newobj 69 102 34 196617 table;
#P message 69 84 37 196617 write;
#P comment 69 133 49 196617 see also:;
#P connect 3 0 1 0;
#P connect 1 0 2 0;
#P hidden connect 13 0 8 0;
#P hidden connect 9 0 8 0;
#P hidden connect 10 0 8 0;
#P hidden connect 11 0 8 0;
#P hidden connect 8 0 7 0;
#P window clipboard copycount 14;

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

Stefan Tiedje
Klanggestalter
Electronic Composition
&
Improvisation

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

————————-x—-
–_____———–|———–
–(_|_ —-|—–|—–()—-
– _|_)—-|—–()———–
———-()————x—–

14, Av. Pr. Franklin Roosevelt,
94320 Thiais, France
Phone at CCMIX +33-1-57 42 91 09

#75617

You must be logged in to reply to this topic.