[PD] Wave Shaping

Frank Barknecht fbar at footils.org
Fri Feb 4 21:11:59 CET 2005


Hallo,
Phillip Stearns hat gesagt: // Phillip Stearns wrote:

> Which is a less processor intensive method of wave shaping: using
> writing an equation once to a table and modulating tabread4~ with an
> incoming signal or running that signal through the expr~ (the
> exquation I'm using is [epxr~ $v1-($v1*$v2) + if($v1<=0, -pow(-$v1,
> 0.15), pow($v1, 0.15))*$v2]  Where $v1 is the incoming audio signal
> and $v2 is value from 0 to 1.  I have had success using expr~ but
> have a suspicion that tabread4~ might be a little less processor
> hungry.  Anyone have any clue?

I would guess, that tabread4~ indeed is faster here, but I didn't do
any benchmarking, which should be easy to do with an abstraction for
each approach and copying it a lot of times using Pd's internal
messages like in:  [until 100]---[; pd-subpatch 10 10 my_test_abstraction(

Ciao
-- 
 Frank Barknecht                               _ ______footils.org__




More information about the Pd-list mailing list