Skip to content

File wavefolder.h

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

Go to the documentation of this file

Source Code

/*
Copyright (c) 2020 Electrosmith, Corp, Nick Donaldson

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_WAVEFOFOLDER_H
#define DSY_WAVEFOFOLDER_H

#include <stdint.h>
#include "Utility/dcblock.h"
#ifdef __cplusplus

namespace daisysp
{
class Wavefolder
{
  public:
    Wavefolder() {}
    ~Wavefolder() {}
    void Init();
    float Process(float in);
    inline void SetGain(float gain) { gain_ = gain; }
    inline void SetOffset(float offset) { offset_ = offset; }

  private:
    float gain_, offset_;
};
} // namespace daisysp
#endif
#endif