DaisySP
Loading...
Searching...
No Matches
wavefolder.h
1/*
2Copyright (c) 2020 Electrosmith, Corp, Nick Donaldson
3
4Use of this source code is governed by an MIT-style
5license that can be found in the LICENSE file or at
6https://opensource.org/licenses/MIT.
7*/
8
9#pragma once
10#ifndef DSY_WAVEFOFOLDER_H
11#define DSY_WAVEFOFOLDER_H
12
13#include <stdint.h>
14#include "Utility/dcblock.h"
15#ifdef __cplusplus
16
17namespace daisysp
18{
28{
29 public:
30 Wavefolder() {}
31 ~Wavefolder() {}
34 void Init();
37 float Process(float in);
42 inline void SetGain(float gain) { gain_ = gain; }
46 inline void SetOffset(float offset) { offset_ = offset; }
47
48 private:
49 float gain_, offset_;
50};
51} // namespace daisysp
52#endif
53#endif
Definition delayline.h:29
Definition wavefolder.h:28
void SetGain(float gain)
Definition wavefolder.h:42
void Init()
Definition wavefolder.cpp:6
void SetOffset(float offset)
Definition wavefolder.h:46
float Process(float in)
Definition wavefolder.cpp:12
FIR Filter implementation, generic and ARM CMSIS DSP based.
Definition adenv.h:16