10#ifndef DSY_WHITENOISE_H
11#define DSY_WHITENOISE_H
35 inline void SetAmp(
float a) { amp_ = a; }
41 return (randseed_ * coeff_) * amp_;
45 inline void SetSeed(int32_t s) { randseed_ = s == 0 ? 1 : s; }
48 static constexpr float coeff_ = 4.6566129e-010f;
Definition whitenoise.h:21
void Init()
Definition whitenoise.h:27
void SetSeed(int32_t s)
Definition whitenoise.h:45
float Process()
Definition whitenoise.h:38
void SetAmp(float a)
Definition whitenoise.h:35
FIR Filter implementation, generic and ARM CMSIS DSP based.
Definition adenv.h:16