<?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[Simple math logic...not simple for me :(]]></title><description><![CDATA[<p>Hi...i'm having a problem i just can resolve, or my mind at this point is completely blocked...<br />
I'm doing a patch where you can read rgb pixel data and use it to produce various sounds.<br />
The problem is that i'm trying to split in six different colors, RGB of course, and the combination of that, Cyan Magenta &amp; Yellow. Now i'm at the moment when i can &quot;play&quot; the yellow or cyan color without &quot;playing&quot; the green color. It's just G - Y or C. Great! But what i want to do now, AND I JUST CAN'T (and i'm feeling a little stupid at this point) is to play the three colors in combination when there's a white color. I can't find the right math conditions or operator to do this. I know is not an specific PD issue, but is driving me crazy.</p>
<p>I just want, at least with that particular image, to get a 1 as a result. I mean, the green synth should play when is green and white too...</p>
<p>I'll post some images<img src="/uploads/files/1564748498663-puredata2.jpg" alt="puredata2.JPG" class="img-responsive img-markdown" /></p>
<p>Thanks in advance!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12204/simple-math-logic-not-simple-for-me</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 21:45:42 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/12204.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 02 Aug 2019 12:22:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Simple math logic...not simple for me :( on Fri, 02 Aug 2019 12:22:25 GMT]]></title><description><![CDATA[<p>Hi...i'm having a problem i just can resolve, or my mind at this point is completely blocked...<br />
I'm doing a patch where you can read rgb pixel data and use it to produce various sounds.<br />
The problem is that i'm trying to split in six different colors, RGB of course, and the combination of that, Cyan Magenta &amp; Yellow. Now i'm at the moment when i can &quot;play&quot; the yellow or cyan color without &quot;playing&quot; the green color. It's just G - Y or C. Great! But what i want to do now, AND I JUST CAN'T (and i'm feeling a little stupid at this point) is to play the three colors in combination when there's a white color. I can't find the right math conditions or operator to do this. I know is not an specific PD issue, but is driving me crazy.</p>
<p>I just want, at least with that particular image, to get a 1 as a result. I mean, the green synth should play when is green and white too...</p>
<p>I'll post some images<img src="/uploads/files/1564748498663-puredata2.jpg" alt="puredata2.JPG" class="img-responsive img-markdown" /></p>
<p>Thanks in advance!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12204/simple-math-logic-not-simple-for-me</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12204/simple-math-logic-not-simple-for-me</guid><dc:creator><![CDATA[juliandp]]></dc:creator><pubDate>Fri, 02 Aug 2019 12:22:25 GMT</pubDate></item><item><title><![CDATA[Reply to Simple math logic...not simple for me :( on Fri, 02 Aug 2019 14:06:47 GMT]]></title><description><![CDATA[<p>Hi <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/juliandp">@juliandp</a>, can you explain a bit more in depth what you are trying to do?</p>
<p>I think you need to decide which color space you want to use for the image sonification. The HSV or HSL color space (hue, saturation, luminance) might be useful if you want to make a different sound for each color range of the spectrum and also has a separate value for the brightness.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12204/simple-math-logic-not-simple-for-me/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12204/simple-math-logic-not-simple-for-me/2</guid><dc:creator><![CDATA[dom1817]]></dc:creator><pubDate>Fri, 02 Aug 2019 14:06:47 GMT</pubDate></item><item><title><![CDATA[Reply to Simple math logic...not simple for me :( on Fri, 02 Aug 2019 14:09:21 GMT]]></title><description><![CDATA[<p>Oh...other space color...yeah i thought about it.</p>
<p>I'll explain the patch in more detail.<br />
It loads an image. Every pixel color data RGB, and its combinations, represent a different voice of a 6-voice fugue. This fugue is playing in background all the time. For example. the first voice is associated with the values of the red values. If the value is 1 the fugue voice is at full volume, when the values of the reds gets lower, that fugue voice is filtered and lowered in amplitude...it's like that with the other colors. Each six colors with each six fugue voices.</p>
<p>It's easy to only play the reds, greens and blue voices, cause they're not a combination (or a modulation in my case) of colors. But when I combine two colors (red &amp; green to get yellow o blue &amp; green to get cyan), the &quot;source&quot; colors are sounding too.</p>
<p>Well at this point, i can play yellow or cyan, and not play the source colors. That operation is done. It's Source color (e.g. Green) minus yellow or cyan, and with that the green value is reduced. It's great!!! buuuutttt...</p>
<p>What i want to do is, the sum of all colors is white...so the color green should be sounding like the rest of colors...but i JUST CAN'T GET THAT TO WORK...because the operations i made, the green gets a 0 value...</p>
<p>I'll upload my patch if this explanation is too clumsy...sorry bout that.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12204/simple-math-logic-not-simple-for-me/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12204/simple-math-logic-not-simple-for-me/3</guid><dc:creator><![CDATA[juliandp]]></dc:creator><pubDate>Fri, 02 Aug 2019 14:09:21 GMT</pubDate></item><item><title><![CDATA[Reply to Simple math logic...not simple for me :( on Fri, 02 Aug 2019 14:24:42 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/juliandp">@juliandp</a> <a href="/uploads/files/1564755861486-gem-test-1.rar">GEM Test 1.rar</a></p>
<p>The main patch is Gem Test 1.pd</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12204/simple-math-logic-not-simple-for-me/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12204/simple-math-logic-not-simple-for-me/4</guid><dc:creator><![CDATA[juliandp]]></dc:creator><pubDate>Fri, 02 Aug 2019 14:24:42 GMT</pubDate></item><item><title><![CDATA[Reply to Simple math logic...not simple for me :( on Fri, 02 Aug 2019 17:30:23 GMT]]></title><description><![CDATA[<p>well i did it. I just put an [abs] object to counterback the negative result of my operations. Not the fanciest way, but it works!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12204/simple-math-logic-not-simple-for-me/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12204/simple-math-logic-not-simple-for-me/5</guid><dc:creator><![CDATA[juliandp]]></dc:creator><pubDate>Fri, 02 Aug 2019 17:30:23 GMT</pubDate></item></channel></rss>