-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drum filter fix, effects gain compensation
- Loading branch information
Showing
10 changed files
with
166 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,41 @@ | ||
#pragma once | ||
#ifndef DSY_OVERDRIVE_H | ||
#define DSY_OVERDRIVE_H | ||
|
||
|
||
/** @file overdrive.h */ | ||
|
||
/** | ||
@brief Distortion / Overdrive Module | ||
@author Ported by Ben Sergentanis | ||
@date Jan 2021 | ||
Ported from pichenettes/eurorack/plaits/dsp/fx/overdrive.h \n | ||
to an independent module. \n | ||
Original code written by Emilie Gillet in 2014. \n | ||
*/ | ||
class Overdrive | ||
{ | ||
public: | ||
Overdrive() {} | ||
~Overdrive() {} | ||
|
||
/** Initializes the module with 0 gain */ | ||
void Init(); | ||
|
||
/** Get the next sample | ||
\param in Input to be overdriven | ||
*/ | ||
float Process(float in); | ||
|
||
/** Set the amount of drive | ||
\param drive Works from 0-1 | ||
*/ | ||
void SetDrive(float drive); | ||
|
||
private: | ||
float drive_; | ||
float pre_gain_; | ||
float post_gain_; | ||
}; | ||
#endif | ||
#pragma once | ||
#ifndef DSY_OVERDRIVE_H | ||
#define DSY_OVERDRIVE_H | ||
|
||
|
||
/** @file overdrive.h */ | ||
|
||
/** | ||
@brief Distortion / Overdrive Module | ||
@author Ported by Ben Sergentanis | ||
@date Jan 2021 | ||
Ported from pichenettes/eurorack/plaits/dsp/fx/overdrive.h \n | ||
to an independent module. \n | ||
Original code written by Emilie Gillet in 2014. \n | ||
*/ | ||
class Overdrive | ||
{ | ||
public: | ||
Overdrive() {} | ||
~Overdrive() {} | ||
|
||
/** Initializes the module with 0 gain */ | ||
void Init(); | ||
|
||
/** Get the next sample | ||
\param in Input to be overdriven | ||
*/ | ||
float Process(float in); | ||
|
||
/** Set the amount of drive | ||
\param drive Works from 0-1 | ||
*/ | ||
void SetDrive(float drive); | ||
|
||
private: | ||
float drive_; | ||
float pre_gain_; | ||
float post_gain_; | ||
float compens_; | ||
}; | ||
#endif |
Oops, something went wrong.