DaisySP
Loading...
Searching...
No Matches
autowah.h
1/*
2Copyright (c) 2020 Electrosmith, Corp, Paul Batchelor
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_AUTOWAH_H
11#define DSY_AUTOWAH_H
12
13#include <stdint.h>
14#ifdef __cplusplus
15
16namespace daisysp
17{
25{
26 public:
27 Autowah() {}
28 ~Autowah() {}
32 void Init(float sample_rate);
33
34
38 float Process(float in);
39
40
44 inline void SetWah(float wah) { wah_ = wah; }
48 inline void SetDryWet(float drywet) { wet_dry_ = drywet; }
52 inline void SetLevel(float level) { level_ = level; }
53
54 private:
55 float sampling_freq_, const1_, const2_, const4_, wah_, level_, wet_dry_,
56 rec0_[3], rec1_[2], rec2_[2], rec3_[2], rec4_[2], rec5_[2];
57};
58} // namespace daisysp
59#endif
60#endif
Definition autowah.h:25
void SetWah(float wah)
Definition autowah.h:44
void Init(float sample_rate)
Definition autowah.cpp:7
float Process(float in)
Definition autowah.cpp:30
void SetLevel(float level)
Definition autowah.h:52
void SetDryWet(float drywet)
Definition autowah.h:48
FIR Filter implementation, generic and ARM CMSIS DSP based.
Definition adenv.h:16