<?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[Newbie Logical Operators and Bangs]]></title><description><![CDATA[<p>I'm new to Pure Data and have a very simple problem I need to solve!</p>
<p>I have 2 bang messages, but I need to create an object that will only send a bang if there is a bang on both inputs at the same time. I have tried using a logical and (&amp;&amp;) but this doesn't do what I want it to!</p>
<p>Please help me!</p>
<p>Thanks,</p>
<p>Matt</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/2492/newbie-logical-operators-and-bangs</link><generator>RSS for Node</generator><lastBuildDate>Wed, 09 Sep 2026 06:11:01 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/2492.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 22 Apr 2009 23:10:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Newbie Logical Operators and Bangs on Wed, 22 Apr 2009 23:10:51 GMT]]></title><description><![CDATA[<p>I'm new to Pure Data and have a very simple problem I need to solve!</p>
<p>I have 2 bang messages, but I need to create an object that will only send a bang if there is a bang on both inputs at the same time. I have tried using a logical and (&amp;&amp;) but this doesn't do what I want it to!</p>
<p>Please help me!</p>
<p>Thanks,</p>
<p>Matt</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/2492/newbie-logical-operators-and-bangs</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/2492/newbie-logical-operators-and-bangs</guid><dc:creator><![CDATA[00hubblemp]]></dc:creator><pubDate>Wed, 22 Apr 2009 23:10:51 GMT</pubDate></item><item><title><![CDATA[Reply to Newbie Logical Operators and Bangs on Thu, 23 Apr 2009 02:29:16 GMT]]></title><description><![CDATA[<p>2 bangs will NEVER happen at the same time. there will always be at least a tiny fraction of a second between each one. even if you bang them progromatically, one of the bangs will be sent before the other one.</p>
<p>so, what you need to do, is to define what you mean by 'the same time', by giving a threshold for the minimum time between bangs that will count them as occurring simultaniously.</p>
<p>hopefully the attached patch will do what you want. i have set the threshold to 10ms by default, but you can change that if you need.</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/2bangs.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/2bangs.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/2492/newbie-logical-operators-and-bangs/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/2492/newbie-logical-operators-and-bangs/2</guid><dc:creator><![CDATA[hardoff]]></dc:creator><pubDate>Thu, 23 Apr 2009 02:29:16 GMT</pubDate></item><item><title><![CDATA[Reply to Newbie Logical Operators and Bangs on Thu, 23 Apr 2009 08:26:36 GMT]]></title><description><![CDATA[<p>cool thanks!this works great!</p>
<p>i also need a way to only send out a bang only if the left input has recieved a bang. if both are a bang then no output, if right only has a bang then no output.</p>
<p>any ideas?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/2492/newbie-logical-operators-and-bangs/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/2492/newbie-logical-operators-and-bangs/3</guid><dc:creator><![CDATA[00hubblemp]]></dc:creator><pubDate>Thu, 23 Apr 2009 08:26:36 GMT</pubDate></item><item><title><![CDATA[Reply to Newbie Logical Operators and Bangs on Thu, 23 Apr 2009 08:44:54 GMT]]></title><description><![CDATA[<p>to explain this is for using a rock band controller as a midi device!</p>
<p>if you look in my patch, there are two sets of 5 buttons, he lower buttons at the bottom of the neck, and the top buttons higher up the neck. when a lower button is pressed, only one of the coulours is toggled on. when you press a top button, one of the colours is turned on as well as the first grey toggle.</p>
<p>i need a way to be able to tell the difference between top and bottom buttons so i can send different midi messages. also, messages should only be sent when the strum bar is pushed with the buttons (strum bar is toggles 9 and 10 along)</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/Rock_Band.zip" rel="nofollow">http://www.pdpatchrepo.info/hurleur/Rock_Band.zip</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/2492/newbie-logical-operators-and-bangs/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/2492/newbie-logical-operators-and-bangs/4</guid><dc:creator><![CDATA[00hubblemp]]></dc:creator><pubDate>Thu, 23 Apr 2009 08:44:54 GMT</pubDate></item><item><title><![CDATA[Reply to Newbie Logical Operators and Bangs on Thu, 23 Apr 2009 15:03:12 GMT]]></title><description><![CDATA[<p>i think you should look at [spigot]</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/2492/newbie-logical-operators-and-bangs/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/2492/newbie-logical-operators-and-bangs/5</guid><dc:creator><![CDATA[hardoff]]></dc:creator><pubDate>Thu, 23 Apr 2009 15:03:12 GMT</pubDate></item></channel></rss>