<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Close Patch Window command&#x2F;object?]]></title><description><![CDATA[<p>Well, I know that I can open a patch (in this case a simple sequencer) with a bang routed to pd internal message [; pd open sequencer.pd ../PD/(</p>
<p>...but I would very much like to close it with a bang as well - the bang would output first to cue up the pattern I've entered and then close the window as well.</p>
<p>DO NOT go querying on this, you won't find anything.</p>
<p>I'm open minded about a shell command if someone seconds my opinion that it may be the only way. I would prefer an internal message or object though.</p>
<p>Thanks,<br />
J.P.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4063/close-patch-window-command-object</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 01:19:56 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/4063.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 22 Jul 2010 20:40:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Close Patch Window command&#x2F;object? on Thu, 22 Jul 2010 20:40:45 GMT]]></title><description><![CDATA[<p>Well, I know that I can open a patch (in this case a simple sequencer) with a bang routed to pd internal message [; pd open sequencer.pd ../PD/(</p>
<p>...but I would very much like to close it with a bang as well - the bang would output first to cue up the pattern I've entered and then close the window as well.</p>
<p>DO NOT go querying on this, you won't find anything.</p>
<p>I'm open minded about a shell command if someone seconds my opinion that it may be the only way. I would prefer an internal message or object though.</p>
<p>Thanks,<br />
J.P.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4063/close-patch-window-command-object</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4063/close-patch-window-command-object</guid><dc:creator><![CDATA[PonZo]]></dc:creator><pubDate>Thu, 22 Jul 2010 20:40:45 GMT</pubDate></item><item><title><![CDATA[Reply to Close Patch Window command&#x2F;object? on Thu, 22 Jul 2010 21:41:16 GMT]]></title><description><![CDATA[<p>This message will close a patch named test.pd:</p>
<p>[;pd-test.pd menuclose(</p>
<p>mvh</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4063/close-patch-window-command-object/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4063/close-patch-window-command-object/2</guid><dc:creator><![CDATA[pulsed]]></dc:creator><pubDate>Thu, 22 Jul 2010 21:41:16 GMT</pubDate></item><item><title><![CDATA[Reply to Close Patch Window command&#x2F;object? on Thu, 22 Jul 2010 23:58:13 GMT]]></title><description><![CDATA[<p>Thank you, that indeed works. There seems to be a glitch in my implementation however.</p>
<p>It worked smoothly the first time, prompted me to save changes, great.</p>
<p>Subsequent trials, closing after I have not made any changes, exit PD altogether.</p>
<p>Has anyone else tried this? It's really too bad that there is so little documentation on internal messages.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4063/close-patch-window-command-object/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4063/close-patch-window-command-object/3</guid><dc:creator><![CDATA[PonZo]]></dc:creator><pubDate>Thu, 22 Jul 2010 23:58:13 GMT</pubDate></item><item><title><![CDATA[Reply to Close Patch Window command&#x2F;object? on Fri, 23 Jul 2010 12:16:52 GMT]]></title><description><![CDATA[<p>Oh yes I forgot.</p>
<p>You can't do it from the patch you are closing. You have to do it from another patch.</p>
<p>And if you try to close two patches with the same name pd will crash.</p>
<p>Another thing: if you want to suppress the save changes message put a 1 after menuclose like [pd-blabla.pd menuclose 1(</p>
<p>Lack of documentation is partly because this use of internal messages is not supported.</p>
<p>Anyway attached is a small example. Open main.pd and start the metro</p>
<p>mvh</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/main.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/main.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4063/close-patch-window-command-object/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4063/close-patch-window-command-object/4</guid><dc:creator><![CDATA[pulsed]]></dc:creator><pubDate>Fri, 23 Jul 2010 12:16:52 GMT</pubDate></item><item><title><![CDATA[Reply to Close Patch Window command&#x2F;object? on Fri, 23 Jul 2010 12:16:52 GMT]]></title><description><![CDATA[<p>Oh yes I forgot.</p>
<p>You can't do it from the patch you are closing. You have to do it from another patch.</p>
<p>And if you try to close two patches with the same name pd will crash.</p>
<p>Another thing: if you want to suppress the save changes message put a 1 after menuclose like [pd-blabla.pd menuclose 1(</p>
<p>Lack of documentation is partly because this use of internal messages is not supported.</p>
<p>Anyway attached is a small example. Open main.pd and start the metro</p>
<p>mvh</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/main.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/main.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4063/close-patch-window-command-object/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4063/close-patch-window-command-object/5</guid><dc:creator><![CDATA[pulsed]]></dc:creator><pubDate>Fri, 23 Jul 2010 12:16:52 GMT</pubDate></item><item><title><![CDATA[Reply to Close Patch Window command&#x2F;object? on Fri, 23 Jul 2010 17:37:15 GMT]]></title><description><![CDATA[<p>Thanks again that clears it up right. For anyone interested here's what I had to do...because I'm a little slow with the details.</p>
<p>I had to make sure that the windowcloser.pd was not a subpatch of my main patch, of which the popup window was also a subpatch.</p>
<p>I still wanted to send from the same bang that applied changes in my popup window. It crashed PD, even though the windowcloser.pd patch, where the [r closeit]----[pd-popup.pd menuclose( command fires, is not a subpatch of the main patch.</p>
<p>So, I added a delay in the windowcloser.pd patch between it receiving the bang and actually hitting the message-command box (50 ms, excessive but who cares); this seems to allow me to close my popup window with one click in the very window that I am closing. Yea!</p>
<p>Of course windowcloser.pd must run in the background this entire time, but I imagine it will be able to provide similar functionality for any number of my subpatches...now how much I/O glitching is this opening and closing of windows going to cause me? I don't want to know.</p>
<ul>
<li>J.P.</li>
</ul>
]]></description><link>http://forum.pdpatchrepo.info/topic/4063/close-patch-window-command-object/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4063/close-patch-window-command-object/6</guid><dc:creator><![CDATA[PonZo]]></dc:creator><pubDate>Fri, 23 Jul 2010 17:37:15 GMT</pubDate></item></channel></rss>