DaisySP
Loading...
Searching...
No Matches
maytrig.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_MAYTRIG_H
11#define DSY_MAYTRIG_H
12
13#include <stdint.h>
14#ifdef __cplusplus
15
16namespace daisysp
17{
25{
26 public:
27 Maytrig() {}
28 ~Maytrig() {}
35 inline float Process(float prob)
36 {
37 return ((float)rand() / (float)RAND_MAX) <= prob ? true : false;
38 }
39
40 private:
41};
42} // namespace daisysp
43#endif
44#endif
Definition delayline.h:29
Definition maytrig.h:25
float Process(float prob)
Definition maytrig.h:35
FIR Filter implementation, generic and ARM CMSIS DSP based.
Definition adenv.h:16