DaisySP
Loading...
Searching...
No Matches
sampleratereducer.h
Go to the documentation of this file.
1/*
2Copyright (c) 2020 Electrosmith, Corp, Emilie Gillet
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_SR_REDUCER_H
11#define DSY_SR_REDUCER_H
12
13#include <stdint.h>
14#ifdef __cplusplus
15
18namespace daisysp
19{
29{
30 public:
33
35 void Init();
36
40 float Process(float in);
41
45 void SetFreq(float frequency);
46
47 private:
48 float frequency_;
49 float phase_;
50 float sample_;
51 float previous_sample_;
52 float next_sample_;
53};
54} // namespace daisysp
55#endif
56#endif
Definition delayline.h:29
Sample rate reducer.
Definition sampleratereducer.h:29
float Process(float in)
Definition sampleratereducer.cpp:15
void SetFreq(float frequency)
Definition sampleratereducer.cpp:40
void Init()
Definition sampleratereducer.cpp:6
FIR Filter implementation, generic and ARM CMSIS DSP based.
Definition adenv.h:16