<?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[Detecting edit mode]]></title><description><![CDATA[<p>Hello, sorry if this has been asked before, but I searched the forum as well as google and I didn't find anything. Is it possible to detect whether edit mode is active?</p>
<p>Basically what I'm trying to do is use the qwertyuiop keys to toggle on and off different sounds (q multiplies audio signal by 1, then pressing q again will multiply the signal by 0). I have the toggling working already, but I'd like to be able to add new objects in edit mode... The problem is that [key] still detects keys during edit mode, which could result in unwanted toggling of sounds.</p>
<p>Any advice would be much appreciated.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/3970/detecting-edit-mode</link><generator>RSS for Node</generator><lastBuildDate>Sat, 17 Oct 2026 09:18:24 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/3970.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 19 Jun 2010 00:24:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Detecting edit mode on Sat, 19 Jun 2010 00:24:48 GMT]]></title><description><![CDATA[<p>Hello, sorry if this has been asked before, but I searched the forum as well as google and I didn't find anything. Is it possible to detect whether edit mode is active?</p>
<p>Basically what I'm trying to do is use the qwertyuiop keys to toggle on and off different sounds (q multiplies audio signal by 1, then pressing q again will multiply the signal by 0). I have the toggling working already, but I'd like to be able to add new objects in edit mode... The problem is that [key] still detects keys during edit mode, which could result in unwanted toggling of sounds.</p>
<p>Any advice would be much appreciated.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/3970/detecting-edit-mode</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/3970/detecting-edit-mode</guid><dc:creator><![CDATA[defaultxr]]></dc:creator><pubDate>Sat, 19 Jun 2010 00:24:48 GMT</pubDate></item><item><title><![CDATA[Reply to Detecting edit mode on Sat, 19 Jun 2010 08:14:32 GMT]]></title><description><![CDATA[<p>if you move the mouse the cursor will change</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/3970/detecting-edit-mode/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/3970/detecting-edit-mode/2</guid><dc:creator><![CDATA[cian.ltdt]]></dc:creator><pubDate>Sat, 19 Jun 2010 08:14:32 GMT</pubDate></item><item><title><![CDATA[Reply to Detecting edit mode on Sat, 19 Jun 2010 19:27:22 GMT]]></title><description><![CDATA[<p>That's not what I'm asking. Basically I need an object that can output whether Pd is in edit mode so I can open or close a [spigot] based on that.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/3970/detecting-edit-mode/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/3970/detecting-edit-mode/3</guid><dc:creator><![CDATA[defaultxr]]></dc:creator><pubDate>Sat, 19 Jun 2010 19:27:22 GMT</pubDate></item><item><title><![CDATA[Reply to Detecting edit mode on Sun, 20 Jun 2010 00:03:11 GMT]]></title><description><![CDATA[<p>Here's a patch that will send a bang when you use the hotkey combination for edit mode. It will not tell you which mode you are in, but as long as you know which mode you started in, and only use hotkeys to change modes, this will do the trick.</p>
<p>A couple of things to note:</p>
<p>1. This was made for Mac OS X, so the hotkey combination is &quot;command-e&quot;, this might be different on a different OS (in which case, simply change the Meta_L [route] argument to whatever you use instead of &quot;command&quot;.</p>
<p>2. It recognizes the combination of &quot;command&quot; followed by &quot;e&quot;, so if you simply press &quot;command&quot;, release, and then press &quot;e&quot; it will still trigger.</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/edit_mode_detector.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/edit_mode_detector.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/3970/detecting-edit-mode/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/3970/detecting-edit-mode/4</guid><dc:creator><![CDATA[bitsynthesis]]></dc:creator><pubDate>Sun, 20 Jun 2010 00:03:11 GMT</pubDate></item><item><title><![CDATA[Reply to Detecting edit mode on Sun, 20 Jun 2010 20:26:46 GMT]]></title><description><![CDATA[<p>Thank you pd123... I already had something similar to detect ctrl+e but I think your patch works better. Too bad there's not a simpler way to detect edit mode though...</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/3970/detecting-edit-mode/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/3970/detecting-edit-mode/5</guid><dc:creator><![CDATA[defaultxr]]></dc:creator><pubDate>Sun, 20 Jun 2010 20:26:46 GMT</pubDate></item><item><title><![CDATA[Reply to Detecting edit mode on Mon, 21 Jun 2010 07:05:17 GMT]]></title><description><![CDATA[<p>there is.<br />
<a href="http://www.mail-archive.com/pd-list@iem.at/msg31189.html" rel="nofollow">http://www.mail-archive.com/pd-list@iem.at/msg31189.html</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/3970/detecting-edit-mode/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/3970/detecting-edit-mode/6</guid><dc:creator><![CDATA[ydebutee]]></dc:creator><pubDate>Mon, 21 Jun 2010 07:05:17 GMT</pubDate></item><item><title><![CDATA[Reply to Detecting edit mode on Mon, 21 Jun 2010 15:16:23 GMT]]></title><description><![CDATA[<p>Ah, interesting ydebutee, I wasn't aware of that message.</p>
<p>Unfortunately, it looks like the 1 = enable editmode, 0 = toggle editmode weirdness remains, so this still won't tell you if you're in edit mode or not.</p>
<p>That said, it will more reliably trigger a toggle than my key-combination catcher (edit_mode_detector.pd).</p>
<p>I'd say the best way to use it is to assign a hotkey, since you can't very well click a bang or message when in edit mode. For example, to make 'e' the hotkey for editmode on my system:</p>
<p>[key]<br />
|<br />
[sel 101]<br />
|<br />
[; pd-this_patch.pd editmode 0(</p>
<p>You can send the bang from [sel] to a toggle object in order to keep track of what mode you are in, assuming you know what mode you started in and don't accidentally use the default hotkey combination.</p>
<p>If you plan on using the editmode message in more than one place you may want to use the following (as suggested in ydebutee's link):</p>
<p>[r pd-this_patch.pd]<br />
|<br />
[route editmode]<br />
|<br />
**<br />
|<br />
[tgl]**</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/3970/detecting-edit-mode/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/3970/detecting-edit-mode/7</guid><dc:creator><![CDATA[bitsynthesis]]></dc:creator><pubDate>Mon, 21 Jun 2010 15:16:23 GMT</pubDate></item><item><title><![CDATA[Reply to Detecting edit mode on Tue, 22 Jun 2010 04:01:41 GMT]]></title><description><![CDATA[<p>@pd123 said:</p>
<blockquote>
<p>If you plan on using the editmode message in more than one place you may want to use the following (as suggested in ydebutee's link):</p>
<p>[r pd-this_patch.pd]<br />
|<br />
[route editmode]<br />
|<br />
**<br />
|<br />
[tgl]<br />
I remembered reading that and tried it out to see if it works. I seem to get nothing out of the [receive]. <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/frowning.png" title=":-(" alt=":-(" /> So the hotkey is probably the best way to do it.**</p>
</blockquote>
]]></description><link>http://forum.pdpatchrepo.info/topic/3970/detecting-edit-mode/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/3970/detecting-edit-mode/8</guid><dc:creator><![CDATA[Maelstorm]]></dc:creator><pubDate>Tue, 22 Jun 2010 04:01:41 GMT</pubDate></item><item><title><![CDATA[Reply to Detecting edit mode on Tue, 22 Jun 2010 05:29:42 GMT]]></title><description><![CDATA[<p>It works for me.</p>
<p>I'm using Pd-extended 0.41.4 on Mac OS X 10.5.8</p>
<p>Here's the patch I'm using with 'z' as the editmode hotkey</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/editmode2.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/editmode2.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/3970/detecting-edit-mode/9</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/3970/detecting-edit-mode/9</guid><dc:creator><![CDATA[bitsynthesis]]></dc:creator><pubDate>Tue, 22 Jun 2010 05:29:42 GMT</pubDate></item><item><title><![CDATA[Reply to Detecting edit mode on Thu, 24 Jun 2010 04:42:19 GMT]]></title><description><![CDATA[<p>Right, it works that way. I meant that selecting Edit from the menu or pressing cmd/cntl+e doesn't send the editmode message to the receive. I think that would be ideal for situations like this.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/3970/detecting-edit-mode/10</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/3970/detecting-edit-mode/10</guid><dc:creator><![CDATA[Maelstorm]]></dc:creator><pubDate>Thu, 24 Jun 2010 04:42:19 GMT</pubDate></item><item><title><![CDATA[Reply to Detecting edit mode on Thu, 24 Jun 2010 14:22:00 GMT]]></title><description><![CDATA[<p>Oh, yes. I misunderstood.</p>
<p>I agree, menu and hotkey should both send editmode messages.</p>
<p>Until then, the above patch isn't of much use to me, as it's not worth the trouble of trying to learn a new hotkey just for one performance patch (I would inevitably revert to the default from time to time).</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/3970/detecting-edit-mode/11</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/3970/detecting-edit-mode/11</guid><dc:creator><![CDATA[bitsynthesis]]></dc:creator><pubDate>Thu, 24 Jun 2010 14:22:00 GMT</pubDate></item></channel></rss>