simple maths to turn phasor ramp into bell-ish curve

brendan mccloskey's icon

Hi
I can turn a phasor ramp (0-1) into a nice curved and synced window, thanks to either cycle~, cos~ or sin~. For reasons that I won't bore you with, I'm trying to do it using only MSP maths operators (!-~, +~, *~, %~ etc).

For example, one way is:
phasor -> [* 2] -> [!- 1] -> [* itself] -> [!- 1]. Other ways have revealed themselves, but I'm just wondering if there was a more elegant (less objects) way?

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

As usual, this is not a critical issue, just musing.

Peace, as always
Brendan

brendan mccloskey's icon

. . . . note to self: look at Gregory's easing/tweening formulae!!

nonlocality's icon

this is disgusting and obviously not the correct way to do it but i thought it was pretty funny. (at least, i had fun hacking it together quickly)

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

brendan mccloskey's icon

You have a strange idea of the word 'fun' LOL

Nice cosine tho

ps did you check out Gregory's easing/tweening patches?