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

◆ normalized_channels()

MAYAFLUX_API std::vector< Kakshya::DataVariant > MayaFlux::normalized_channels ( const std::vector< Kakshya::DataVariant > &  channels,
double  target_peak = 1.0 
)

Normalize each channel independently (non-destructive)

Parameters
channelsVector of channel data
target_peakTarget peak amplitude (default: 1.0)
Returns
Vector of normalized channel copies

Definition at line 602 of file Yantra.cpp.

603{
604 auto out = channels;
605 for (auto& ch : out)
606 normalize(ch, target_peak);
607 return out;
608}
void normalize(std::vector< double > &data, double target_peak)
Normalize single-channel data to specified peak level (in-place)
Definition Yantra.cpp:565

References normalize().

+ Here is the call graph for this function: