A better kink~

Jun 17, 2013 at 8:40pm

A better kink~

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.

– Pasted Max Patch, click to expand. –

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

Attachments:
  1. BasicPD
#253068
Jun 17, 2013 at 10:23pm

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

<code>

– Pasted Max Patch, click to expand. –

</code>

#253070

You must be logged in to reply to this topic.