DaisySP
Loading...
Searching...
No Matches
tremolo.h
Go to the documentation of this file.
1/*
2Copyright (c) 2020 Electrosmith, Corp
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_TREMOLO_H
11#define DSY_TREMOLO_H
12
13#include <stdint.h>
14#ifdef __cplusplus
15
16#include <math.h>
17#include "Synthesis/oscillator.h"
18
21namespace daisysp
22{
30{
31 public:
32 Tremolo() {}
33 ~Tremolo() {}
34
38 void Init(float sample_rate);
39
44 float Process(float in);
45
49 void SetFreq(float freq);
50
54 void SetWaveform(int waveform);
55
59 void SetDepth(float depth);
60
61
62 private:
63 float sample_rate_, dc_os_;
64 Oscillator osc_;
65};
66} // namespace daisysp
67#endif
68#endif
Definition delayline.h:29
Definition oscillator.h:21
Tremolo effect.
Definition tremolo.h:30
void SetFreq(float freq)
Definition tremolo.cpp:21
void SetWaveform(int waveform)
Definition tremolo.cpp:26
void SetDepth(float depth)
Definition tremolo.cpp:30
void Init(float sample_rate)
Definition tremolo.cpp:6
float Process(float in)
Definition tremolo.cpp:15
FIR Filter implementation, generic and ARM CMSIS DSP based.
Definition adenv.h:16