Signalsmith Audio's DSP Library  1.6.0
Useful C++ classes/templates for audio effects
Files | Classes | Modules | Functions
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...
 

Modules

 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/. More...
 

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/.