Skip to content

File overdrive.h

File List > DaisySP > Source > Effects > overdrive.h

Go to the documentation of this file

Source Code

/*
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

namespace daisysp
{
class Overdrive
{
  public:
    Overdrive() {}
    ~Overdrive() {}

    void Init();

    float Process(float in);

    void SetDrive(float drive);

  private:
    float drive_;
    float pre_gain_;
    float post_gain_;
};
} // namespace daisysp
#endif
#endif