If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding premade modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
Soft clipper
6 posts
• Page 1 of 1
Soft clipper
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?
 Logado
 Posts: 58
 Joined: Tue Jan 06, 2015 5:42 pm
Re: Soft clipper
That's very close to the good old tanh(x). I'm not familiar with that plugin but I assume that's what it's using since that function is very popular.
Now tanh itself is also expensive to compute, but you can get away with very rough polynomial approximations.
You can find some on google.
Now tanh itself is also expensive to compute, but you can get away with very rough polynomial approximations.
You can find some on google.
 TheOm
 Posts: 127
 Joined: Tue Jan 28, 2014 7:35 pm
 Location: Germany
Re: Soft clipper
There are fast stream functions over at FS Guru which you could use. Alternatively, try
which is even closer to your formula than tanh(x).
Edit: Sorry if this information was cursory. Here is a schematic with optimised transfer curves.
 Code: Select all
y = x/sqrt(1 + x^2)
which is even closer to your formula than tanh(x).
Edit: Sorry if this information was cursory. Here is a schematic with optimised transfer curves.
 Attachments

 CustomTF.fsm
 (1.24 MiB) Downloaded 279 times

martinvicanek  Posts: 844
 Joined: Sat Jun 22, 2013 8:28 pm
Re: Soft clipper
thanks for tips, distortion is an interesting area, so much magic happens here
 Logado
 Posts: 58
 Joined: Tue Jan 06, 2015 5:42 pm
Re: Soft clipper
Hello Logado,
DO some searches on the forum, but just not for distortion, but clipper, wave shapers, fuzz, square wave (etc), rectifiers, and so on. You will find many examples of magic. Feed them with a sine wave and then out to a windowed FFT display and you can view the harmonics.
Have fun.
Cheers, BobF.....
DO some searches on the forum, but just not for distortion, but clipper, wave shapers, fuzz, square wave (etc), rectifiers, and so on. You will find many examples of magic. Feed them with a sine wave and then out to a windowed FFT display and you can view the harmonics.
Have fun.
Cheers, BobF.....
 BobF
 Posts: 497
 Joined: Mon Apr 20, 2015 9:54 pm
Re: Soft clipper
BobF wrote:Hello Logado,
DO some searches on the forum, but just not for distortion, but clipper, wave shapers, fuzz, square wave (etc), rectifiers, and so on. You will find many examples of magic. Feed them with a sine wave and then out to a windowed FFT display and you can view the harmonics.
Have fun.
Cheers, BobF.....
I think I've seen ~90% of osm files from the forum I learned dsp with the help of this forum (thank you). Now I'm using the juce. I want to learn how to emulate different devices. But the smallest difference in the curve no longer gives the harmonics that need. I'm thinking of experimenting with a wave shaper with a table without formulas. I wonder what will come out
 Logado
 Posts: 58
 Joined: Tue Jan 06, 2015 5:42 pm
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests