Signalsmith Audio's DSP Library  1.6.1
Useful C++ classes/templates for audio effects
Loading...
Searching...
No Matches
Multichannel mixing

Description

Utilities for stereo/multichannel mixing operations.

Files

file  mix.h
 

Classes

class  signalsmith::mix::StereoMultiMixer< Sample, channels >
 Upmix/downmix a stereo signal to an (even) multi-channel signal. More...
 

Topics

 Orthogonal matrices
 Some common matrices used for audio.
 

Functions

template<typename Sample, typename Result>
void signalsmith::mix::cheapEnergyCrossfade (Sample x, Result &toCoeff, Result &fromCoeff)
 A cheap (polynomial) almost-energy-preserving crossfade Maximum energy error: 1.06%, average 0.64%, curves overshoot by 0.3% See: http://signalsmith-audio.co.uk/writing/2021/cheap-energy-crossfade/.
 

Function Documentation

◆ cheapEnergyCrossfade()

template<typename Sample, typename Result>
void signalsmith::mix::cheapEnergyCrossfade ( Sample x,
Result & toCoeff,
Result & fromCoeff )

A cheap (polynomial) almost-energy-preserving crossfade Maximum energy error: 1.06%, average 0.64%, curves overshoot by 0.3% See: http://signalsmith-audio.co.uk/writing/2021/cheap-energy-crossfade/.