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

◆ pulse_response() [2/2]

MAYAFLUX_API void MayaFlux::Kinesis::Discrete::pulse_response ( std::span< double >  out,
double  t,
std::span< const double >  onset,
std::span< const double >  duration,
std::span< const double >  rise,
std::span< const double >  fall,
std::span< const double >  period 
)
noexcept

pulse_response over arrays, written to out.

Parameters
outLevels, one per entry
tTime
onsetOnset of each entry
durationPulse length of each entry
riseRise constant of each entry
fallFall constant of each entry
periodRepeat interval of each entry, zero or less for a single pulse

Runs over the shortest of the spans. A closed form in t, so any time can be asked for in any order and nothing is carried between calls.

Definition at line 32 of file Dynamics.cpp.

40{
41 const size_t count = std::min({ out.size(), onset.size(), duration.size(), rise.size(), fall.size(), period.size() });
42 for (size_t i = 0; i < count; ++i)
43 out[i] = pulse_response(t, onset[i], duration[i], rise[i], fall[i], period[i]);
44}
std::vector< float > * out
size_t count

References count, out, and pulse_response().

+ Here is the call graph for this function: