Module panning::stereo [] [src]

Utility functions to assist with stereo panning.

Constants

MINUS_3_DECIBELS
MINUS_6_DECIBELS

Functions

centre

Return the channel amplitudes for a centred pan.

hard_left

Return the channel amplitudes for a hard-left pan.

hard_right

Return the channel amplitudes for a hard-right pan.

pan

Return the amp for left and right channels according to a given pan between -1.0 and 1.0. pan is assumed to always be between -1.0 and 1.0 (L and R) and will not perform any checks. The minimum and maximum amplitude of each channel will be between 0.0 and 1.0 respectively. A centered pan (0.0) will leave both channels at -3db (0.708). A hard pan to either side will result in the weighted channel at 0db (1.0).