A better kink~

rjungemann's icon

I was trying to use kink~ as the basis for a Casio-styled Phase Distortion synth. But to get a left-kinked sawtooth waveform, you need to feed it a number between 0.5 and 1 linearly. To get a right-kinked sawtooth waveform you need to feed it a number between 1 and infinity with some sort of exponential curve.

Instead of dealing with exponential curves and piecewise functions, I decided to use gen~ to write my own much-more-sane (for my purposes) version of kink~.

Enjoy.

Max Patch
Copy patch and select New From Clipboard in Max.

The attached diagram should explain what I am talking about (the top-right cell shows what I am designating a "left-kinked sawtooth")

BasicPD.gif
gif
jvkr's icon
Max Patch
Copy patch and select New From Clipboard in Max.

That looks nice and simple. For those without gen~, in this way it is possible to have equal values for left and right kinking.