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

◆ one_shot_state()

MAYAFLUX_API std::vector< double > MayaFlux::Kinesis::Discrete::one_shot_state ( double  duration,
double  threshold = 0.5 
)

Builds the array one_shot reads and writes.

Parameters
durationSeconds the output stays high after a rise
thresholdLevel the input must rise through

Layout: [threshold, latched, release time, duration].

Definition at line 237 of file Boolean.cpp.

238{
239 return { threshold, 0.0, 0.0, duration };
240}
float threshold

References threshold.