MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ step_pattern()

MAYAFLUX_API bool MayaFlux::Kinesis::Discrete::step_pattern ( double  input,
std::span< double >  coefs 
)
noexcept

A table of bits advanced by the rises of the input.

The array is step_sequence_state's, read as bits: an entry above 0.5 is a one. Each rise moves to the next entry and wraps.

Definition at line 215 of file Boolean.cpp.

216{
217 return step_sequence(std::span<const double>(&input, 1), coefs) > 0.5;
218}
Core::GlobalInputConfig input
Definition Config.cpp:42
double step_sequence(std::span< const double > window, std::span< double > coefs) noexcept
Table of values advanced by a trigger.
Definition Kernels.cpp:629

References input, and step_sequence().

+ Here is the call graph for this function: