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 pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
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
![Crying or Very Sad :cry:](./images/smilies/icon_cry.gif)
![Crying or Very Sad :cry:](./images/smilies/icon_cry.gif)
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: 62
- 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: 103
- 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 1331 times
-
martinvicanek - Posts: 1319
- Joined: Sat Jun 22, 2013 8:28 pm
Re: Soft clipper
thanks for tips, distortion is an interesting area, so much magic happens here ![Smile :)](./images/smilies/icon_e_smile.gif)
![Smile :)](./images/smilies/icon_e_smile.gif)
- Logado
- Posts: 62
- 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: 598
- 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
![Smile :)](./images/smilies/icon_e_smile.gif)
- Logado
- Posts: 62
- 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 32 guests