What's wrong with this asymmetric distortion algo? » Python Programming Language » FORUM for IT
FORUM for IT

FORUM for IT



ПоискПоиск   Users   Registration   Entrance
Today: 24.04.2025 - 15:02:05
Pages:  1  

What's wrong with this asymmetric distortion algo?

Advertising

.
AuthorMessage

mzoom

user




Statistics:
Messages: 212
Registration: 02.28.2001

Hey all, I'm working on a JS amp and am trying out different types of distortion. However, this one I cant seem to figure out how to implement (probably because I don't have sufficient math skills) - it's the dash-dotted line I'm after: The part that gives me problems is (obviously) the first function, I did it like this: Code:

---------------------
///MZOOM John 02 530i Sport Alpine White 04 Mini Cooper S JCW - what a fun car! Gone but not forgotten and still rolling strong: 97 M3 Sedan Cosmos Black 99 M Coupe Cosmos Black - sold to a spoiled brat - sorry M Coupe 98 M3 Sedan Techno Violet 99 M
Message # 1 22.02.25 - 10:10:08
RE: What's wrong with this asymmetric distortion algo?

CaNtCaChMyM

user




Statistics:
Messages: 32
Registration: 07.31.2003

I've managed to create the spike, by using +0.08905 in the range limits instead of -0.08905. Is this the cause?

---------------------
Hybrid '92 325is '99 M3 3.2L Motor CAIS 3.5 HFM BMP T- Body UUC Pullies Euro Headers AA Chip BMP Lighten Flywheel Tri-Flo Exhaust Custom Fuel Rail
Message # 2 22.02.25 - 10:18:07
RE: What's wrong with this asymmetric distortion algo?

r2edline

user




Statistics:
Messages: 147
Registration: 03.02.2003

It's hard to see in your plot, Jonas, but it seems the spike occurs somewhere above -0.09, where the second sub-function is to be used. The function is composed of three sub-functions, each valid within its respective range: -1 <= to < -0.08905 -0.08905 <= to < 0.320018 0.320018 <= to <= 1 What you code seem correct, but it is only valid for the first range and so that it has a spike outside that range is really unimportant; in that region where the spike is the second sub-function is valid, the other two not. So your code should look something like (not JS code obviously) Code:

---------------------
Message # 3 22.02.25 - 10:27:44
RE: What's wrong with this asymmetric distortion algo?

squirrel

user




Statistics:
Messages: 453
Registration: 08.07.2003

Yes I can see the small spike when I zoom in on my plot. But the spike goes away if use -0.01 at the end of the first expression. I think there's a sign error in the original expression. Hopefully the maths makes sense. I don't know how to program in JS. Pete

---------------------
Bleed Green Club member 2
Message # 4 22.02.25 - 10:38:45
RE: What's wrong with this asymmetric distortion algo?

kay

user




Statistics:
Messages: 250
Registration: 09.02.2003

Here's a VST plug that lets you enter the equations... AND... hear them. scoll down to Func Shaper

---------------------
Message # 5 22.02.25 - 10:50:17
RE: What's wrong with this asymmetric distortion algo?
DVDAutoVideoSize for IC - what does it do? : Previous topicNext topic: Building a studio.
Pages:  1  

The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants