<?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[Log to linear conversion]]></title><description><![CDATA[<p>I've built a guitar pedal using the daisy seed and have embedded a pd patch onto it, the only problem is that in the finishing stages i've realised i want some of the controls to on a linear scale but i have log potentiometers. Does anyone know how to convert log to linear? Everything i see is about converting lin to log.</p>
<p>Just figured I ask before I have to buy new pots.</p>
<p>Cheers</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15103/log-to-linear-conversion</link><generator>RSS for Node</generator><lastBuildDate>Sat, 13 Jun 2026 15:00:37 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/15103.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 28 Apr 2025 11:15:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Log to linear conversion on Mon, 28 Apr 2025 11:15:55 GMT]]></title><description><![CDATA[<p>I've built a guitar pedal using the daisy seed and have embedded a pd patch onto it, the only problem is that in the finishing stages i've realised i want some of the controls to on a linear scale but i have log potentiometers. Does anyone know how to convert log to linear? Everything i see is about converting lin to log.</p>
<p>Just figured I ask before I have to buy new pots.</p>
<p>Cheers</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15103/log-to-linear-conversion</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/15103/log-to-linear-conversion</guid><dc:creator><![CDATA[callummalcolm]]></dc:creator><pubDate>Mon, 28 Apr 2025 11:15:55 GMT</pubDate></item><item><title><![CDATA[Reply to Log to linear conversion on Mon, 28 Apr 2025 14:24:14 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/callummalcolm">@callummalcolm</a> In my experience, &quot;audio taper&quot; pots and faders aren't mathematically logarithmic like Pd's are, which is why you can't make Pd's log sliders go to 0 without extra effort. So here's a solution that works in Pd, but what I'm saying is that it probably won't linearize a physical audio taper pot well. I made a table-driven transfer function to linearize the CC messages coming from the faders on my Yamaha 01V96i and the line is somewhat arbitrary, especially at the bottom of the travel. Let me know if you want to try that route and I'll tell you more. Capturing the physical curve is kinda messy.<br />
<a href="/uploads/files/1745849476736-log2lin.pd">log2lin.pd</a><br />
<img src="/uploads/files/1745849529381-screenshot-2025-04-28-100557.png" alt="Screenshot 2025-04-28 100557.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15103/log-to-linear-conversion/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/15103/log-to-linear-conversion/2</guid><dc:creator><![CDATA[jameslo]]></dc:creator><pubDate>Mon, 28 Apr 2025 14:24:14 GMT</pubDate></item><item><title><![CDATA[Reply to Log to linear conversion on Mon, 28 Apr 2025 19:31:26 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/callummalcolm">@callummalcolm</a> You can get a decent linearization of log pots with a resistor. I would assume these pots are voltage dividers? if so just place a resistor between +V and the center lug of the pot. Calculating the value of the resistor is simple, just a standard voltage divider with parallel resistances in the top resistor. I generally measure the resistance between those two pins at half a dozen settings and use that for the calculations since pots tend not to be great on the tolerances.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15103/log-to-linear-conversion/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/15103/log-to-linear-conversion/3</guid><dc:creator><![CDATA[oid]]></dc:creator><pubDate>Mon, 28 Apr 2025 19:31:26 GMT</pubDate></item><item><title><![CDATA[Reply to Log to linear conversion on Mon, 28 Apr 2025 21:49:45 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/oid">@oid</a> said:</p>
<blockquote>
<p>Calculating the value of the resistor is simple</p>
</blockquote>
<p>Yes, but you neglected to give the OP the formula, which is a little harder to figure out <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" />. It's approx 0.13 of the value of the potentiometer. So for a 10k audio taper pot you want a 1.3k resistor. And for the record, it increases the load that the pot presents to the power rails by a factor of 10 when it's fully counter-clockwise.</p>
<p>To me, both solutions are just linear-ish, You can find a discussion of it here: <a href="https://www.modwiggler.com/forum/viewtopic.php?t=56318" rel="nofollow">https://www.modwiggler.com/forum/viewtopic.php?t=56318</a>. You can see that  they discuss 0.12 so 0.13 is not exact, even more so since the audio taper pot isn't exactly log. I'm not claiming that linear pots are perfect, but if it were me I'd just go buy the right pots and chalk up the extra expense as tuition. Unless there was a show breathing down my neck.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15103/log-to-linear-conversion/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/15103/log-to-linear-conversion/4</guid><dc:creator><![CDATA[jameslo]]></dc:creator><pubDate>Mon, 28 Apr 2025 21:49:45 GMT</pubDate></item><item><title><![CDATA[Reply to Log to linear conversion on Tue, 29 Apr 2025 00:04:41 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/jameslo">@jameslo</a> I named the equations needed to calculate it based off those measurements I mentioned, voltage divider and parallel resistance. 0.13 assumes the taper is accurate but for most pots the taper is approximate and can be quite off. I was a bit lazy in my explanation and on reread I was more lazy than I thought. The actual taper of the log/audio taper pot is two linear curves overlapping at the halfway point, first half of rotation covers a straight line from 0 to ~10% of the max value, then we transfer to the second curve to get the ~10% to 100% in the final half of rotation. &quot;Not exactly log&quot; is a bit of an understatement but it does the job most of the time. This goofy curve combined with the poor tolerances of pots and difficulties involved in matching pots for curve is why high end studio gear often goes to rotary switches when matched controls are needed.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15103/log-to-linear-conversion/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/15103/log-to-linear-conversion/5</guid><dc:creator><![CDATA[oid]]></dc:creator><pubDate>Tue, 29 Apr 2025 00:04:41 GMT</pubDate></item><item><title><![CDATA[Reply to Log to linear conversion on Tue, 29 Apr 2025 18:01:47 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/callummalcolm">@callummalcolm</a> seem to recall the numbers the daisy seed reports from potentiometers are normalized float .. which is just fancy talk to say they range from 0-1 (or maybe more like 0-0.99999)</p>
<p>in that case you can use [+ 1] into [log 2] to convert them to a linear(ish) curve .. its probably good enough for rock and roll.</p>
<p>for other numbers (like the arduino's 0-255) its the same concept, [+ 1] because log is weird, [log 256] which turns it into 0-1, you can add [* 255] again or work with the normalized float</p>
<p>in a sense and at the ranges were interested in its sort of like a fixed look up table, so the log function will either make a linear ramp into log or make a log ramp into linear</p>
<p>and yeah as they mention above the log (audio) taper potentiometer is actually a linear taper with an extra resistor that is then doing resistor math (see <a href="https://sound-au.com/pots.htm" rel="nofollow">https://sound-au.com/pots.htm</a> and <a href="https://sound-au.com/project01.htm" rel="nofollow">https://sound-au.com/project01.htm</a> for a better description).</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15103/log-to-linear-conversion/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/15103/log-to-linear-conversion/6</guid><dc:creator><![CDATA[fishcrystals]]></dc:creator><pubDate>Tue, 29 Apr 2025 18:01:47 GMT</pubDate></item><item><title><![CDATA[Reply to Log to linear conversion on Tue, 29 Apr 2025 19:51:51 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/jameslo">@jameslo</a> super interesting thank you, i'm going to use the setup you posted just there and see how it goes, if it's a bit janky i'm all for that it'll go with the rest of the pedal lol</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15103/log-to-linear-conversion/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/15103/log-to-linear-conversion/7</guid><dc:creator><![CDATA[callummalcolm]]></dc:creator><pubDate>Tue, 29 Apr 2025 19:51:51 GMT</pubDate></item><item><title><![CDATA[Reply to Log to linear conversion on Tue, 29 Apr 2025 19:55:25 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/oid">@oid</a> that's a good shout actually, i never even thought about trying to sort it out on the board. super interesting stuff about the rotary switches i've always wondered that. thank you !</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15103/log-to-linear-conversion/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/15103/log-to-linear-conversion/8</guid><dc:creator><![CDATA[callummalcolm]]></dc:creator><pubDate>Tue, 29 Apr 2025 19:55:25 GMT</pubDate></item><item><title><![CDATA[Reply to Log to linear conversion on Tue, 29 Apr 2025 19:58:18 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/fishcrystals">@fishcrystals</a> rock and roll will do lol, thanks for the explanation and the links !</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15103/log-to-linear-conversion/9</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/15103/log-to-linear-conversion/9</guid><dc:creator><![CDATA[callummalcolm]]></dc:creator><pubDate>Tue, 29 Apr 2025 19:58:18 GMT</pubDate></item></channel></rss>