Pd WaveShaperI created a very simple waveshaper in for Pure Data. It is based off the internal PD tabread~ object. You give the object a name of an array that you'd like to use for the wave-shaping function (you can also specify a new array to use by sending a "set arrayname" message to left input). This array is used to compute output samples based on the value of the input samples. The input is clipped to be in the range -1..1, then it is scaled and shifted to be in the range 0..(array length - 1). The input samples are used as the x value when indexing the array and the y value from the array is output (linear interpolation is used to get in between samples). If you have a strait line from x,y = (0,-1) to (array_len-1,1) in your array you'd get out the exact sample values that you put on the input. If you put some other values in the array (as shown in the picture) you will get a distorted output, which may or may not be pleasing to you.the code is here pd-waveshape.tar.gz |
![]() |