<?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[Store a variable to compare to current variable]]></title><description><![CDATA[<p>I'm using co-ordinates from a grid to trigger a note. at the moment when a Button (co-ord) is pressed and held while  a new Button press occurs, new button press on release will also cause the previous button press to stop ( despite it remains pushed).</p>
<p>Im trying to implement this block diagram where we receive a co-ord, check the condition. If true the co-ord is sent forward and stored as current co-ord. If false the co-ord is checked against current co-ord...</p>
<p>The thing is Im not sure how to store the co-ordinate values so as you would in a general-purpose program perhaps?  Has anyone designed a keyboard application and had to do this?![Screen Shot 2017-05-17 at 17.16.05.png](/uploads/files/1495039722630-screen-shot-<img src="/uploads/files/1495039805391-screen-shot-2017-05-17-at-17.49.08.png" alt="Screen Shot 2017-05-17 at 17.49.08.png" class="img-responsive img-markdown" /> 2017-05-17-at-17.16.05.png)</p>
<p>Please find attached a flow chart and the pure data patch to implement to flow chart design.</p>
<p>many thanks</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable</link><generator>RSS for Node</generator><lastBuildDate>Tue, 19 May 2026 19:08:55 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/10741.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 17 May 2017 16:50:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Store a variable to compare to current variable on Wed, 17 May 2017 16:50:30 GMT]]></title><description><![CDATA[<p>I'm using co-ordinates from a grid to trigger a note. at the moment when a Button (co-ord) is pressed and held while  a new Button press occurs, new button press on release will also cause the previous button press to stop ( despite it remains pushed).</p>
<p>Im trying to implement this block diagram where we receive a co-ord, check the condition. If true the co-ord is sent forward and stored as current co-ord. If false the co-ord is checked against current co-ord...</p>
<p>The thing is Im not sure how to store the co-ordinate values so as you would in a general-purpose program perhaps?  Has anyone designed a keyboard application and had to do this?![Screen Shot 2017-05-17 at 17.16.05.png](/uploads/files/1495039722630-screen-shot-<img src="/uploads/files/1495039805391-screen-shot-2017-05-17-at-17.49.08.png" alt="Screen Shot 2017-05-17 at 17.49.08.png" class="img-responsive img-markdown" /> 2017-05-17-at-17.16.05.png)</p>
<p>Please find attached a flow chart and the pure data patch to implement to flow chart design.</p>
<p>many thanks</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable</guid><dc:creator><![CDATA[Fauveboy]]></dc:creator><pubDate>Wed, 17 May 2017 16:50:30 GMT</pubDate></item><item><title><![CDATA[Reply to Store a variable to compare to current variable on Wed, 17 May 2017 17:26:51 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/fauveboy">@Fauveboy</a> You can assign an id to every button. If you have 8 rows you could do it with x * 8 + y. If there are also 8 columns you now have 64 datapoints that can have the value 0 or 1. From there you can go on. For storing the values you can use array for example.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/2</guid><dc:creator><![CDATA[ingox]]></dc:creator><pubDate>Wed, 17 May 2017 17:26:51 GMT</pubDate></item><item><title><![CDATA[Reply to Store a variable to compare to current variable on Wed, 17 May 2017 17:12:58 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/fauveboy">@Fauveboy</a></p>
<p>Hi, this sends out the x y coordinates only when their state is 1. I suppose you could also do it with [poly].</p>
<p><img src="/uploads/files/1495041088641-screen-shot-2017-05-17-at-19.11.02.png" alt="Screen Shot 2017-05-17 at 19.11.02.png" class="img-responsive img-markdown" /></p>
<p><a href="/uploads/files/1495041102591-store.variable.pd">store.variable.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/3</guid><dc:creator><![CDATA[weightless]]></dc:creator><pubDate>Wed, 17 May 2017 17:12:58 GMT</pubDate></item><item><title><![CDATA[Reply to Store a variable to compare to current variable on Wed, 17 May 2017 18:05:17 GMT]]></title><description><![CDATA[<p>I have a similar design implemented in c just for comparison to get the idea across<img src="/uploads/files/1495039865459-screen-shot-2017-05-17-at-17.40.10.png" alt="Screen Shot 2017-05-17 at 17.40.10.png" class="img-responsive img-markdown" /> <img src="/uploads/files/1495039872790-screen-shot-2017-05-17-at-17.40.19.png" alt="Screen Shot 2017-05-17 at 17.40.19.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/4</guid><dc:creator><![CDATA[Fauveboy]]></dc:creator><pubDate>Wed, 17 May 2017 18:05:17 GMT</pubDate></item><item><title><![CDATA[Reply to Store a variable to compare to current variable on Wed, 17 May 2017 18:14:25 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/fauveboy">@Fauveboy</a></p>
<p>So, when the button is pressed (state == 1) you need the coordinates to be sent out and stored, but what do you need to happen when the state is 0 (= button release?) Do you just need that the coordinates are not sent through?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/5</guid><dc:creator><![CDATA[weightless]]></dc:creator><pubDate>Wed, 17 May 2017 18:14:25 GMT</pubDate></item><item><title><![CDATA[Reply to Store a variable to compare to current variable on Wed, 17 May 2017 20:19:27 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/weightless">@weightless</a> well what happens is that the new button press will need to, for example, trigger a note...and the button releases need to work independently. so that when a new button is pressed it doesn't cancel out the previously pressed buttons that my be sustained during.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/6</guid><dc:creator><![CDATA[Fauveboy]]></dc:creator><pubDate>Wed, 17 May 2017 20:19:27 GMT</pubDate></item><item><title><![CDATA[Reply to Store a variable to compare to current variable on Wed, 17 May 2017 20:25:45 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/weightless">@weightless</a> maybe the coordinates in a 0 state arnt sent through but the that still needs to reach a button to tell it to turn off others buttons would continue sustaining?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/7</guid><dc:creator><![CDATA[Fauveboy]]></dc:creator><pubDate>Wed, 17 May 2017 20:25:45 GMT</pubDate></item><item><title><![CDATA[Reply to Store a variable to compare to current variable on Wed, 17 May 2017 20:40:49 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/fauveboy">@Fauveboy</a> Well, I built your patch copying the flow chart...... never saved it..... and on testing the dreaded &quot;stack overflow&quot; put an end to all my work.<br />
You can build a stack of notes like this........ that you can then access.....<br />
<a href="/uploads/files/1495052630370-stack.pd">stack.pd</a><br />
although you only need a two level stack as I understand it?<br />
David.<br />
((Better &quot;slow&quot; example for your purposes....... <a href="/uploads/files/1495053640162-stack2.pd">stack2.pd</a>  ))</p>
<p><img src="/uploads/files/1495052793494-capture.jpg" alt="Capture.JPG" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/8</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Wed, 17 May 2017 20:40:49 GMT</pubDate></item><item><title><![CDATA[Reply to Store a variable to compare to current variable on Wed, 17 May 2017 20:27:27 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/fauveboy">@Fauveboy</a></p>
<p>Ok I see, then I think it depends on whether each button (aka each set of coordinates) is assigned to a fixed note or not, because in that case rather than using this sort of logic you could use each unique pair of coordinates to trigger a specific note, and use the state value to trigger the velocity (0 = 0, 1 = 127, for example).</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/9</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/9</guid><dc:creator><![CDATA[weightless]]></dc:creator><pubDate>Wed, 17 May 2017 20:27:27 GMT</pubDate></item><item><title><![CDATA[Reply to Store a variable to compare to current variable on Wed, 17 May 2017 20:40:55 GMT]]></title><description><![CDATA[<p>well the limitation there is that the grid is a monome and has 255 different buttons. the co ordinates are coming from serialosc. theres no velocity just on or off. not all the buttons will trigger notes some are sent to other areas of the patch to trigger an lfo signal for change a parameter.</p>
<p>for example in this screen shots we take values that meet a certain condition. if i press say 3 15 1 hold it ..press 5 15 1 thats fine 5 15 1 plays. But when i release 5 15 1 where i was  holding 3 15 1 is lost.</p>
<p>what also happens is if i press any co-ord value that meet the conditions here but then press say 6 12 1 whatever job 5 15 1 was doing stopped?<img src="/uploads/files/1495053652967-screen-shot-2017-05-17-at-21.40.00.png" alt="Screen Shot 2017-05-17 at 21.40.00.png" class="img-responsive img-markdown" /></p>
<p><img src="/uploads/files/1495053402111-screen-shot-2017-05-17-at-21.33.04.png" alt="Screen Shot 2017-05-17 at 21.33.04.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/10</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/10</guid><dc:creator><![CDATA[Fauveboy]]></dc:creator><pubDate>Wed, 17 May 2017 20:40:55 GMT</pubDate></item><item><title><![CDATA[Reply to Store a variable to compare to current variable on Wed, 17 May 2017 21:06:35 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/fauveboy">@Fauveboy</a> This cannot be solved by sending everything through one bottleneck because than there can only be one state on or off.</p>
<p>With Midi it would be very simple, let each button send a note-on when pressed and a note-off when released and you are finished.</p>
<p>If you want the sound processing in pd i guess you would need to build a polyphonic synth and send the on and offs to one of the synths. I haven't used the audio stuff in pd yet so i could be wrong on that.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/11</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/11</guid><dc:creator><![CDATA[ingox]]></dc:creator><pubDate>Wed, 17 May 2017 21:06:35 GMT</pubDate></item><item><title><![CDATA[Reply to Store a variable to compare to current variable on Wed, 17 May 2017 21:14:54 GMT]]></title><description><![CDATA[<p><img src="/uploads/files/1495055635285-screen-shot-2017-05-17-at-17.16.05.png" alt="Screen Shot 2017-05-17 at 17.16.05.png" class="img-responsive img-markdown" /></p>
<p>I just realised I didnt link the other flow chart more specifically applied to the patch</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/12</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/12</guid><dc:creator><![CDATA[Fauveboy]]></dc:creator><pubDate>Wed, 17 May 2017 21:14:54 GMT</pubDate></item><item><title><![CDATA[Reply to Store a variable to compare to current variable on Wed, 17 May 2017 21:55:37 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/fauveboy">@Fauveboy</a> Sorry...... correction.......<br />
Your osc messages come in as something like......?<br />
button/xy 3 15 1 (down) and button/xy 3 15 0 (up)<br />
button/trigger 1 (down) and button/trigger 0 (up)</p>
<p>If I understand your presses....... and (the result).....<br />
What you posted looks like.....<br />
press and hold 3 15 1 (note) ....... press 5 (new note)........ release 5 (nothing)</p>
<p>Is that true?<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/13</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/13</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Wed, 17 May 2017 21:55:37 GMT</pubDate></item><item><title><![CDATA[Reply to Store a variable to compare to current variable on Wed, 17 May 2017 21:31:14 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/fauveboy">@Fauveboy</a></p>
<p>if all button presses are going through the same logic gate, there is no way of keeping track of which coordinate is associated with which state, and as soon as a &quot;state = 0&quot; is received, 0 is sent to [s note1] regardless.</p>
<p>I think the best way is to somehow pair the state (on/off) with whatever value you want to pass through (which in the last picture you attached is only the x value?). Then you can send the list to the sound generating stuff and scale them, or convert them to midi and send them outside pd.</p>
<p><img src="/uploads/files/1495056642928-screen-shot-2017-05-17-at-23.26.40.png" alt="Screen Shot 2017-05-17 at 23.26.40.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/14</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/14</guid><dc:creator><![CDATA[weightless]]></dc:creator><pubDate>Wed, 17 May 2017 21:31:14 GMT</pubDate></item><item><title><![CDATA[Reply to Store a variable to compare to current variable on Wed, 17 May 2017 22:06:18 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a> the osc messages are correct yes:<br />
...press and hold 3 15 1 ( button down), continue to hold while 5 15 1 happens. ( i think already in the process 3 15 1 is now cancelled out...if we release 5 15 1 and have 5 15 0, if 3 15 1 was still held it is now inactive ...</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/15</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/15</guid><dc:creator><![CDATA[Fauveboy]]></dc:creator><pubDate>Wed, 17 May 2017 22:06:18 GMT</pubDate></item><item><title><![CDATA[Reply to Store a variable to compare to current variable on Wed, 17 May 2017 22:16:13 GMT]]></title><description><![CDATA[<p>actually a different version of the problem here, thats more relevant perhaps.....with this current patch <img src="/uploads/files/1495059116090-screen-shot-2017-05-17-at-23.11.39.png" alt="Screen Shot 2017-05-17 at 23.11.39.png" class="img-responsive img-markdown" /></p>
<p>any co ordinate such as 12 14 1 makes the condition output false. If a current true value is being used and a false value occurs it should't be stopping a currently active true value ...</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/16</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/16</guid><dc:creator><![CDATA[Fauveboy]]></dc:creator><pubDate>Wed, 17 May 2017 22:16:13 GMT</pubDate></item><item><title><![CDATA[Reply to Store a variable to compare to current variable on Thu, 18 May 2017 03:31:32 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/fauveboy">@Fauveboy</a> If you write the values to an array you can afterwords ask [array sum] if it is 0, which would mean that all buttons are 0.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/17</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/17</guid><dc:creator><![CDATA[ingox]]></dc:creator><pubDate>Thu, 18 May 2017 03:31:32 GMT</pubDate></item><item><title><![CDATA[Reply to Store a variable to compare to current variable on Thu, 18 May 2017 05:28:32 GMT]]></title><description><![CDATA[<p>a bit messy, but this seems to work:<img src="/uploads/files/1495085265128-screenshot-from-2017-05-18-07-27-07.png" alt="Screenshot from 2017-05-18 07:27:07.png" class="img-responsive img-markdown" /> <a href="/uploads/files/1495085281921-expr-trigger-test.pd">expr-trigger-test.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/18</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/18</guid><dc:creator><![CDATA[ingox]]></dc:creator><pubDate>Thu, 18 May 2017 05:28:32 GMT</pubDate></item><item><title><![CDATA[Reply to Store a variable to compare to current variable on Thu, 18 May 2017 07:14:11 GMT]]></title><description><![CDATA[<p>this is interesting ....Im trying describe to myself the logic thats taking place, to understand how its working exactly.  Would you be able to correct my logic, it gets hard to follow after a few steps....<br />
many thanks<br />
starting with :</p>
<p>get co ords</p>
<p>r x is sent to store in three float objects<br />
and the condition equal to - 1?</p>
<p>co word are test with equal to 3</p>
<p>what do we test for next? I guess if equal to three is true or false.</p>
<p>but before we can send the result of == 3 forward….we do something with values from r x, what happens are the -1 condition?<br />
r x (condition) is multiplied with r y  (condition) ?</p>
<p>then we either get 0 or 1.</p>
<p>we can then send the result of all the co-ord added together forward?<br />
we then bang the r x values stored in two of the floats and a zero to spigot 1?</p>
<p>but if spigot 1 is zero we bang a -1? to an earlier condition….</p>
<p>I wanted to send this in the mean time while i look at this again but I think I’m describing it in a convoluted manner?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/19</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/19</guid><dc:creator><![CDATA[Fauveboy]]></dc:creator><pubDate>Thu, 18 May 2017 07:14:11 GMT</pubDate></item><item><title><![CDATA[Reply to Store a variable to compare to current variable on Thu, 18 May 2017 11:43:27 GMT]]></title><description><![CDATA[<p>or perhaps a flow diagram?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/20</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/20</guid><dc:creator><![CDATA[Fauveboy]]></dc:creator><pubDate>Thu, 18 May 2017 11:43:27 GMT</pubDate></item><item><title><![CDATA[Reply to Store a variable to compare to current variable on Thu, 18 May 2017 13:49:10 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/fauveboy">@Fauveboy</a> Having slept on this problem, I thought you might like this solution.<br />
It is how I would have approached it in Pd, without the logic........</p>
<p><a href="/uploads/files/1495108573818-logic.zip">logic.zip</a><br />
Extended and Vanilla.</p>
<p>You can save the patch with the grid drawn...... but then must be careful not to create the grid again..........<br />
The drawing can be automated with a [loadbang] of course.</p>
<p>It is probably possible to attach an age to the xytog abstractions as well, so that &quot;updates&quot; are sent in the correct reverse order when there are many....... as all current xyz values are stored!<br />
David.</p>
<p><img src="/uploads/files/1495108558531-capture.jpg" alt="Capture.JPG" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/21</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/21</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Thu, 18 May 2017 13:49:10 GMT</pubDate></item><item><title><![CDATA[Reply to Store a variable to compare to current variable on Thu, 18 May 2017 13:54:36 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/fauveboy">@Fauveboy</a> Here is a simpler version, the -1 isn't actually needed: <a href="/uploads/files/1495115449698-expr-trigger-test.pd">expr-trigger-test.pd</a></p>
<p>The first button who meets the condition sets the toggle to 1 and closes the spigot. The current number is stored in the [==]. Only this button can open the spigot again: If and only if the incoming number equals the stored one and the second condition is true (1 x 1 = 1), the spigot is opened. The [change] protects against redundancy.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/22</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/22</guid><dc:creator><![CDATA[ingox]]></dc:creator><pubDate>Thu, 18 May 2017 13:54:36 GMT</pubDate></item><item><title><![CDATA[Reply to Store a variable to compare to current variable on Thu, 18 May 2017 16:41:57 GMT]]></title><description><![CDATA[<p>So I've be experimenting by combining the two...and i'd like to share some results .<br />
<a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a> when you mention an age to the xytog. I under stand that perhaps  a counter that increments with every new button press and a decrement with every minus button press? but is that not what xytog is functioning as....or is that why if i press and hold a series of buttons one by one the last one i release then jumps back to the very first on pressed...</p>
<p>I dont think i fully understand where the values are stored exactly ? is it that a toggle pushed down maintains the co ord position and somehow we can recall this back?</p>
<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ingox">@ingox</a> I combined what you sent to manage and allocate a row of buttons still.</p>
<p>What happens with the two combined is if i hold press and hold 3 15 1 then push 6 15 1, 6 15 1 wont make it though the conditions until i let go of 3 15 1.</p>
<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a> if I use the logic patch alone 3 15 1 can be pressed and held, then 6 15 1 can be push and the note will jump to 6 15 1, If i then release 3 15 1, 6 15 1 is then triggered again.</p>
<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ingox">@ingox</a> when your patch is isolated and if i press and hold  ie 3 15 1 every other button is ignored which means i can trigger parameters on the grid without it interfering with  the values within the conditional range..... I wondered if its possible with this to push and hold 3 15 1, and update a list when another note is pushed within the conditional range and revert back to what is previously held like an analogue monophonic synth  synth.....</p>
<p>i guess xytog is one solution to this ...?</p>
<p>also I'd just like to add that this process is much more enjoyable and less daunting with the your help so I'd like to say i really a appreciate the support in the responses<br />
I'm getting here<img src="/uploads/files/1495125716242-screen-shot-2017-05-18-at-16.28.47.png" alt="Screen Shot 2017-05-18 at 16.28.47.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/23</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/23</guid><dc:creator><![CDATA[Fauveboy]]></dc:creator><pubDate>Thu, 18 May 2017 16:41:57 GMT</pubDate></item><item><title><![CDATA[Reply to Store a variable to compare to current variable on Thu, 18 May 2017 17:02:07 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/fauveboy">@Fauveboy</a> You're welcome! Here is a very simplified version of what David did, if you just want an independent representation of each button in Pd:<img src="/uploads/files/1495126488010-screenshot-from-2017-05-18-18-54-19.png" alt="Screenshot from 2017-05-18 18:54:19.png" class="img-responsive img-markdown" /> <a href="/uploads/files/1495126474110-expr-trigger-test2.pd">expr-trigger-test2.pd</a></p>
<p>(Still don't know exactly why you would want them to be interdependent... <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/wink.png" title=";)" alt=";)" />)</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/24</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/24</guid><dc:creator><![CDATA[ingox]]></dc:creator><pubDate>Thu, 18 May 2017 17:02:07 GMT</pubDate></item><item><title><![CDATA[Reply to Store a variable to compare to current variable on Thu, 18 May 2017 17:48:02 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ingox">@ingox</a> Hmm......</p>
<p>____<a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a> if I use the logic patch alone 3 15 1 can be pressed and held, then 6 15 1 can be push and the note will jump to 6 15 1, If i then release 3 15 1, 6 15 1 is then triggered again.</p>
<p>That does not happen in my model...... but then it has no real data.<br />
It is likely that holding an xy button sends a continuous stream of messages....... but?</p>
<p>Maybe time to post your input messages for those key presses.  Maybe the problems originate in the &quot;sent&quot; OSC message order?<br />
Could you put a print from your OSC receive object, and do those key presses and then Screenshot the terminal so that we can see the exact input?</p>
<p>I will think about implementing aging for the [xytog] abstractions.  Yes, they hold the last z value (0/1)  for every xy coordinate and then send again when they receive a bang from [s update]..... but only if their value is 1 (and the bang is only sent when a button is released...... z=0).  However, at the moment they send their output in the order that they execute the command, which is the order of their creation.  Hence an aging value is necessary for stepping backwards.<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/25</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/25</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Thu, 18 May 2017 17:48:02 GMT</pubDate></item><item><title><![CDATA[Reply to Store a variable to compare to current variable on Fri, 19 May 2017 01:25:38 GMT]]></title><description><![CDATA[<p>This stores the order of all pressed keys and always plays the most recent one: <img src="/uploads/files/1495155946635-screenshot-from-2017-05-19-03-05-25.png" alt="Screenshot from 2017-05-19 03:05:25.png" class="img-responsive img-markdown" /> <a href="/uploads/files/1495155959148-monophonic-keys.pd">monophonic-keys.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/26</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/26</guid><dc:creator><![CDATA[ingox]]></dc:creator><pubDate>Fri, 19 May 2017 01:25:38 GMT</pubDate></item><item><title><![CDATA[Reply to Store a variable to compare to current variable on Fri, 19 May 2017 01:20:49 GMT]]></title><description><![CDATA[<p>just to give some context of the design. Im taking influence from applications such as mlr:<br />
<div class="embed-container"><iframe src="//www.youtube.com/embed/t_2xgxndgSU" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div><br />
and digital synthesis  with parameter control ….<br />
I was imaging i need the buttons working independantly in some areas as different co-ord will have different functions and jobs that can’t intervene with each other</p>
<p>these are the print messages from the serialosc object:<img src="/uploads/files/1495156741411-screen-shot-2017-05-19-at-01.57.50.png" alt="Screen Shot 2017-05-19 at 01.57.50.png" class="img-responsive img-markdown" /> <img src="/uploads/files/1495156755151-screen-shot-2017-05-19-at-02.00.33.png" alt="Screen Shot 2017-05-19 at 02.00.33.png" class="img-responsive img-markdown" /></p>
<p>I really wanted to try the monophonic keys.pd but the array objects arn’t recognised ? I tried including a table so see if it would be recognised to store the values in there?<img src="/uploads/files/1495156769183-screen-shot-2017-05-19-at-01.32.07.png" alt="Screen Shot 2017-05-19 at 01.32.07.png" class="img-responsive img-markdown" /></p>
<p>I want to link this design he’s using velocity to compare to a previous value I wasn’t sure if it would be helpful yet? I think its applied differently because of the live signal and the way it receive data…<div class="embed-container"><iframe src="//www.youtube.com/embed/jpWEBcev_Kg" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/27</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10741/store-a-variable-to-compare-to-current-variable/27</guid><dc:creator><![CDATA[Fauveboy]]></dc:creator><pubDate>Fri, 19 May 2017 01:20:49 GMT</pubDate></item></channel></rss>