Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
pan.h File Reference

Panning mono sources. More...

#include <glib/gi18n.h>
Include dependency graph for pan.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PAN_MINUS_3DB_AMP   (-0.292054216f)
 The amplitude of -3dBfs (0.707945784f).
 
#define PAN_MINUS_6DB_AMP   (-0.498812766f)
 The amplitude of -6dBfs (0.501187234f).
 

Enumerations

enum  PanLaw { PAN_LAW_0DB , PAN_LAW_MINUS_3DB , PAN_LAW_MINUS_6DB }
 These are only useful when changing mono to stereo. More...
 
enum  PanAlgorithm { PAN_ALGORITHM_LINEAR , PAN_ALGORITHM_SQUARE_ROOT , PAN_ALGORITHM_SINE_LAW }
 See https://www.harmonycentral.com/articles/the-truth-about-panning-laws. More...
 

Functions

void pan_get_calc_lr (PanLaw law, PanAlgorithm algo, float pan, float *calc_l, float *calc_r)
 

Detailed Description

Panning mono sources.

Definition in file pan.h.

Macro Definition Documentation

◆ PAN_MINUS_3DB_AMP

#define PAN_MINUS_3DB_AMP   (-0.292054216f)

The amplitude of -3dBfs (0.707945784f).

Definition at line 16 of file pan.h.

◆ PAN_MINUS_6DB_AMP

#define PAN_MINUS_6DB_AMP   (-0.498812766f)

The amplitude of -6dBfs (0.501187234f).

Definition at line 19 of file pan.h.

Enumeration Type Documentation

◆ PanAlgorithm

◆ PanLaw

enum PanLaw

These are only useful when changing mono to stereo.

No compensation is needed for stereo to stereo. See https://www.hackaudio.com/digital-signal-processing/stereo-audio/square-law-panning/

Definition at line 28 of file pan.h.