### Soft clipper

Posted:

**Fri Apr 07, 2017 8:31 am**i need create soft clipper (distortion)

The curve and harmonics are very similar to free plugin Gclip.

I found a formula that gives the right harmonics

where alpha 2.5

but 2 power and 2 divisions per sample

Can there is another way to get this curve?

i try in desmos

https://www.desmos.com/calculator/ujkvajglhj

I did not succeed, can anyone have more experience in mathematics?

The curve and harmonics are very similar to free plugin Gclip.

I found a formula that gives the right harmonics

- Code: Select all
`sample / pow(1 + pow(fabs(sample), alpha), 1.0f / alpha)`

where alpha 2.5

but 2 power and 2 divisions per sample

Can there is another way to get this curve?

i try in desmos

https://www.desmos.com/calculator/ujkvajglhj

I did not succeed, can anyone have more experience in mathematics?