DaisySP
Loading...
Searching...
No Matches
drip.h
Go to the documentation of this file.
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_DRIP_H
11#define DSY_DRIP_H
12
13#include <stdint.h>
14#ifdef __cplusplus
15
18namespace daisysp
19{
26class Drip
27{
28 public:
29 Drip() {}
30 ~Drip() {}
31
37 void Init(float sample_rate, float dettack);
38
44 float Process(bool trig);
45
46 private:
47 float gains0_, gains1_, gains2_, kloop_, dettack_, num_tubes_, damp_,
48 shake_max_, freq_, freq1_, freq2_, amp_, snd_level_, outputs00_,
49 outputs01_, outputs10_, outputs11_, outputs20_, outputs21_,
50 total_energy_, center_freqs0_, center_freqs1_, center_freqs2_,
51 num_objects_save_, sound_decay_, system_decay_, finalZ0_, finalZ1_,
52 finalZ2_, coeffs01_, coeffs00_, coeffs11_, coeffs10_, coeffs21_,
53 coeffs20_, shake_energy_, shake_damp_, shake_max_save_, num_objects_,
54 sample_rate_, res_freq0_, res_freq1_, res_freq2_, inputs1_, inputs2_;
55
56 int my_random(int max);
57 float noise_tick();
58};
59} // namespace daisysp
60#endif
61#endif
Definition delayline.h:29
Definition drip.h:27
float Process(bool trig)
Definition drip.cpp:81
void Init(float sample_rate, float dettack)
Definition drip.cpp:31
FIR Filter implementation, generic and ARM CMSIS DSP based.
Definition adenv.h:16