Added DaisySP
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
Copyright (c) 2020 Electrosmith, Corp, Emilie Gillet
|
||||
|
||||
Use of this source code is governed by an MIT-style
|
||||
license that can be found in the LICENSE file or at
|
||||
https://opensource.org/licenses/MIT.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef DSY_OVERDRIVE_H
|
||||
#define DSY_OVERDRIVE_H
|
||||
|
||||
#include <stdint.h>
|
||||
#ifdef __cplusplus
|
||||
|
||||
/** @file overdrive.h */
|
||||
|
||||
namespace daisysp
|
||||
{
|
||||
/**
|
||||
@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_;
|
||||
};
|
||||
} // namespace daisysp
|
||||
#endif
|
||||
#endif
|
||||
Reference in New Issue
Block a user