<?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[Map Object]]></title><description><![CDATA[<p>Hi Everyone!</p>
<p>I'm new to PD and it seems to me that there is no map-object like in processing, cinder, max/msp and... everywhere for mapping some value from one range to another. Am I just too stupid to find it or is PD really missing such an object?</p>
<p>Anyways, searching would probably have taken longer than making one, so here it is. I thought maybe somebody might need it, i use this thing in almost every patch i made! Shouldn't something like this be in the extended-package?</p>
<p>Tell me if you like it, and if there would have been an easier way <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
<p>Cheers<br />
Adrian</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/map.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/map.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6007/map-object</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Nov 2026 00:05:26 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/6007.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 24 Feb 2012 18:09:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Map Object on Fri, 24 Feb 2012 18:09:46 GMT]]></title><description><![CDATA[<p>Hi Everyone!</p>
<p>I'm new to PD and it seems to me that there is no map-object like in processing, cinder, max/msp and... everywhere for mapping some value from one range to another. Am I just too stupid to find it or is PD really missing such an object?</p>
<p>Anyways, searching would probably have taken longer than making one, so here it is. I thought maybe somebody might need it, i use this thing in almost every patch i made! Shouldn't something like this be in the extended-package?</p>
<p>Tell me if you like it, and if there would have been an easier way <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
<p>Cheers<br />
Adrian</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/map.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/map.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6007/map-object</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6007/map-object</guid><dc:creator><![CDATA[danarf]]></dc:creator><pubDate>Fri, 24 Feb 2012 18:09:46 GMT</pubDate></item><item><title><![CDATA[Reply to Map Object on Fri, 24 Feb 2012 23:12:06 GMT]]></title><description><![CDATA[<p>Thanks danarf! While I'm sure this a valuable patch, I don't quite know how to use it. Could you explain this a little further?</p>
<p>Thanks,</p>
<p>Michael</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6007/map-object/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6007/map-object/2</guid><dc:creator><![CDATA[mjpalumbo]]></dc:creator><pubDate>Fri, 24 Feb 2012 23:12:06 GMT</pubDate></item><item><title><![CDATA[Reply to Map Object on Sat, 25 Feb 2012 14:47:45 GMT]]></title><description><![CDATA[<p>Actually there are the [m_autoscale] and [m_scale] from the rjdj lib</p>
<p><a href="https://github.com/rjdj/rjlib" rel="nofollow">https://github.com/rjdj/rjlib</a></p>
<p>the method used is not the same, (don't know if it is simpler) but it's vanilla <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
<p>You're definitely right it is a really usefull object</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6007/map-object/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6007/map-object/3</guid><dc:creator><![CDATA[Berenger]]></dc:creator><pubDate>Sat, 25 Feb 2012 14:47:45 GMT</pubDate></item><item><title><![CDATA[Reply to Map Object on Sat, 25 Feb 2012 17:54:17 GMT]]></title><description><![CDATA[<p>Hello.</p>
<p>I have this abstraction that may be useful. It's for translating a midi CC range to any desired linear range. If you rip its guts apart you may use it for what you intend to.<br />
Best regards.</p>
<p>Sumidero</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/CCtoRange.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/CCtoRange.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6007/map-object/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6007/map-object/4</guid><dc:creator><![CDATA[sumidero]]></dc:creator><pubDate>Sat, 25 Feb 2012 17:54:17 GMT</pubDate></item><item><title><![CDATA[Reply to Map Object on Mon, 27 Feb 2012 12:11:40 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/michael">@Michael</a>: You specify an input range, lets say 0-3. So you put 0 on the 2nd inlet and 3 on the 3rd. Now you specify an output range, lets say 15-300. You put the 15 on the 4th inlet and the 300 on the 5th. (you can also just create the object as [map 0 3 15 300], without using any inlets ) Now every value between 0 and 3 that comes in at the 1st inlet will be mapped to the range 15-300. if a value is higher than 3, or lower than 0 it will be cutoff, and output 0 or 3.<br />
Since I am not very capable with PD, i use it much with other programs (so far), which give you values from 0-1. PD often needs Values from 0-127, so you just create [map 0 1 0 127] and there you go. If you wan't to reverse it you write [map 1 0 0 127]<br />
clear now? <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
<p>I took a look at the rjdj objects... and they are quite cool! That whole library has some nice stuff in it! Thanks BerengerRecoules! I like that their mapping object has an exponent in it. that is very useful! Mine is bit more minimalist, and limits the values. If i had found this before, i wouldn't have written it...</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6007/map-object/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6007/map-object/5</guid><dc:creator><![CDATA[danarf]]></dc:creator><pubDate>Mon, 27 Feb 2012 12:11:40 GMT</pubDate></item><item><title><![CDATA[Reply to Map Object on Sun, 26 Nov 2023 12:59:50 GMT]]></title><description><![CDATA[<p>I've been using this method. You use expr in this format.</p>
<p>[expr (((OldValue - OldMin) * (NewMax - NewMin)) / (OldMax - OldMin)) + NewMin]</p>
<p>When mapping ctl values in, I often start by mapping to the range -1 to 1 which would look like this.</p>
<p>[expr ((($f1 - 0) * (1 - -1)) / (127 - 0)) + -1]</p>
<p>That'll take whatever the ctl value (1-127) coming in and convert it to the rage of -1 to 1. The old min and old max are the min and max of the data coming in and the new min and max represent the range of the values you want.</p>
<p>Hope that helps.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6007/map-object/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6007/map-object/6</guid><dc:creator><![CDATA[pmoney]]></dc:creator><pubDate>Sun, 26 Nov 2023 12:59:50 GMT</pubDate></item></channel></rss>