44 FAlphaBranch(std::mt19937& rngEngine,
RealType ffrac,
unsigned fint, std::unique_ptr<FAlphaBranch> pre,
83 void refill() noexcept;
88 std::reference_wrapper<std::mt19937> _rng_engine_ref;
90 std::normal_distribution<> _normal_dist;
92 std::unique_ptr<
fers_signal::IirFilter> _shape_filter;
94 std::unique_ptr<
fers_signal::IirFilter> _integ_filter;
109 std::vector<RealType> _buffer{};
111 unsigned _buffer_samples{};
119 bool _got_offset{
false};
Class responsible for generating fractional and integer noise components.
FAlphaBranch(FAlphaBranch &&)=delete
FAlphaBranch & operator=(const FAlphaBranch &)=delete
FAlphaBranch * getPre() const noexcept
Retrieves the previous branch in the chain.
FAlphaBranch(const FAlphaBranch &)=delete
void flush(RealType scale)
Flushes the branch with a new scaling factor.
RealType getSample() noexcept
Retrieves the current noise sample.
FAlphaBranch & operator=(FAlphaBranch &&)=delete
Global configuration file for the project.
double RealType
Type for real numbers.
Header file for Digital Signal Processing (DSP) filters and upsampling/downsampling functionality.