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

◆ with_gain_channels()

MAYAFLUX_API std::vector< Kakshya::DataVariant > MayaFlux::with_gain_channels ( const std::vector< Kakshya::DataVariant > &  channels,
double  gain_factor 
)

Apply gain to multi-channel data (non-destructive)

Parameters
channelsVector of channel data
gain_factorMultiplication factor applied to all channels
Returns
Vector of modified channel copies

Definition at line 557 of file Yantra.cpp.

558{
559 auto out = channels;
560 for (auto& ch : out)
561 D::linear(as_span(ch), gain_factor, 0.0);
562 return out;
563}

References MayaFlux::Kinesis::Discrete::linear().

+ Here is the call graph for this function: