DaisySP
Loading...
Searching...
No Matches
Source
Effects
autowah.h
1
/*
2
Copyright (c) 2020 Electrosmith, Corp, Paul Batchelor
3
4
Use of this source code is governed by an MIT-style
5
license that can be found in the LICENSE file or at
6
https://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
16
namespace
daisysp
17
{
24
class
Autowah
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
daisysp::Autowah
Definition
autowah.h:25
daisysp::Autowah::SetWah
void SetWah(float wah)
Definition
autowah.h:44
daisysp::Autowah::Init
void Init(float sample_rate)
Definition
autowah.cpp:7
daisysp::Autowah::Process
float Process(float in)
Definition
autowah.cpp:30
daisysp::Autowah::SetLevel
void SetLevel(float level)
Definition
autowah.h:52
daisysp::Autowah::SetDryWet
void SetDryWet(float drywet)
Definition
autowah.h:48
daisysp
FIR Filter implementation, generic and ARM CMSIS DSP based.
Definition
adenv.h:16
Generated by
1.12.0