[PD] Linear Taper to Log Taper? or Something?

day 5 day5ive at gmail.com
Wed Feb 22 15:40:16 CET 2006


omg lol since this thraed has attractged some attention from teh 
serious "heads" i would like to offer a humble solution to the idea 
before there was an option in teh properties dialogue; bonus: variable 
steepness

feedback, comments, and optimization suggestions are appreciated

-- log curve --v

#N canvas 685 184 372 343 10;
#X obj 20 60 inlet;
#X text 23 42 Float between 0 and 1;
#X obj 196 70 f 1;
#X obj 239 36 loadbang;
#X obj 197 36 inlet;
#X text 202 17 Steepness index (> 1);
#X obj 20 181 outlet;
#X text 29 200 Logarithmic curve between 0 and 1;
#X obj 196 95 expr $f1 \; if ($f1 > 1 \, $f1 \, 1) \; if ($f1 < 1 \,
1 \, 1);
#X text 116 289 (C) 1994 Eric L. Singer;
#X text 119 303 ported to Pd 2005 \, David Akbari;
#X text 239 260 LogCurve;
#X obj 19 147 expr (log($f1*($f2-1)+1)/log($f2));
#X connect 0 0 12 0;
#X connect 2 0 8 0;
#X connect 3 0 2 0;
#X connect 4 0 2 0;
#X connect 8 1 12 1;
#X connect 12 0 6 0;

-- exp curve --v

#N canvas 685 184 376 347 10;
#X obj 20 60 inlet;
#X text 23 42 Float between 0 and 1;
#X obj 19 147 expr (exp($f1*log($f2))-1)/($f2-1);
#X obj 196 70 f 1;
#X obj 239 36 loadbang;
#X obj 197 36 inlet;
#X text 202 17 Steepness index (> 1);
#X obj 20 181 outlet;
#X obj 196 95 expr $f1 \; if ($f1 > 1 \, $f1 \, 1) \; if ($f1 < 1 \,
1 \, 1);
#X text 239 260 ExpCurve;
#X text 116 289 (C) 1994 Eric L. Singer;
#X text 119 303 ported to Pd 2005 \, David Akbari;
#X text 30 199 Exponential curve between 0 and 1;
#X connect 0 0 2 0;
#X connect 2 0 7 0;
#X connect 3 0 8 0;
#X connect 4 0 3 0;
#X connect 5 0 3 0;
#X connect 8 1 2 1;


./d5

On Feb 21, 2006, at 10:52 PM, Hans-Christoph Steiner wrote:

>
> If you are using sliders, then you can set them to "log" scale from 
> linear scale by right-clicking and selecting Properties.  "audio 
> taper" is a logarithmic scale, so "log" would be appropriate.
>
> .hc
>
> On Feb 20, 2006, at 10:44 PM, Ryan Supak wrote:
>
>> Hi PeeDee list,
>>
>> I use PD as a MIDI "translator" into the popular Ableton Live.  I'm 
>> trying to make it to where a single knob controls wet/dry mix for a 
>> given track.  I was hoping it would be a fairly trivial matter of 
>> making a single CC input into two with PD, and assigning each of the 
>> two CCs to a knob (one inverted), and being done with it.
>>
>> However, the problem is that Ableton's knobs use "audio taper", such 
>> that the change in decibels per cc amount is much larger at the 
>> bottom than at the top.  The result of this -- is that at "50 wet/50 
>> dry", the sound is attenuated quite a lot.  Really, though, the sound 
>> amplitude should not change across the wet/dry span.
>>
>> I'm guessing one solution is to alter the 0-127 range of the CC 
>> controls within PD -- maybe map them along a different curve.
>>
>> Thanks for any thoughts!
>> rs





More information about the Pd-list mailing list