-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added analog clipepr module #12
base: develop
Are you sure you want to change the base?
Conversation
Rin = 1e3; //1kOhm | ||
C = 100e-9; //100nF | ||
|
||
h = 1e-5; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check if the h variable is a constant or changes according to sampleRate/T parameters
return vDiodes; | ||
} | ||
|
||
float Clipper::fixedPoint(float vIn) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the name to clarify the code behaviour
|
||
float Clipper::capacitorVoltage(float vIn) | ||
{ | ||
if(inputGain < 1.0f) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check if this IF is needed to make the code work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check the conversation section for feedback
Ciao Gabri, come promesso ecco il clipper analogico ;) dimmi se va bene