Morphing between exponential and logarithmic waveforms

CC's icon

Hey gang, I've been experimenting with creating morphing exponential-to-logarthmic waveforms (mostly for use as LFOs, etc) and I am a bit stuck. I've searched the forums but haven't found exactly what I'm looking for. Basically i'd like to ber able to continously "morph" (not simple crossfade since that would lead to phase issues) between an exponetial and logarthnic curve. So for example the first (rising) half of the wave would be log and the second (falling) half would be exp (and vice versa). Bascally something like this:

I've tried curve~, scale~, slide~, expr into a buffer (via function) and doing some interpolation (as shown in this thread) but I can't quite seem to get the waveshape I want. Any help would be appreciated!

brendan mccloskey's icon

I hope this is of some use:

https://cycling74.com/forums/easing-and-tweening-how-to-make-a-tulip

Brendan

(nice gif, btw!)

CC's icon

Thanks Brendan. Like you, I was able to filter a wave (in my case a rect~) to get log slope but unlike you I can't seem to get the exp curve that I want. But I will play with this a bit.

Roman Thilenius's icon

did you try .... find out what the center position is as function .... then do a linear interpolation between 0 and center and center and 1.

CC's icon

Thanks Roman, I am basically trying to do that right now. The formula is basically an RC charge/discharge circuit for a square wave: http://www.clemson.edu/ces/phoenix/labs/223/rc/

This is pretty much what slide~ does to square waves.

I think i got it, I just need to figure out how to get it into a Max expr object or something