AuxPort 0.2
Modules for Audio Software Development
Loading...
Searching...
No Matches
AuxPort::Audio::Pan Class Reference

Stereo Audio Panner. More...

#include <AuxPan.h>

Public Types

enum  Type { Linear , Sqrt , Sinusoidal , Constant }
 Type of Audio Panner. More...
 

Public Member Functions

 Pan (const Type &type=Type::Linear)
 
 Pan (const Pan &gain)=default
 
void setPan (float pan, float panStart, float panEnd)
 Use the setPan function to update the panning Value, Specify the range of the parameter so that the internal dsp object can remap the value.
 
void process (float &leftChannel, float &rightChannel)
 Use the function to apply Pan to a Stereo Frame.
 

Detailed Description

Stereo Audio Panner.

2 channel Panning class with 4 algorithms

Definition at line 58 of file AuxPan.h.

Member Enumeration Documentation

◆ Type

Type of Audio Panner.

Enumerator
Linear 

Linear Pan.

Sqrt 

Sqrt Pan.

Sinusoidal 

Sinusoidal Pan.

Constant 

Constant Power Pan.

Definition at line 64 of file AuxPan.h.

Constructor & Destructor Documentation

◆ Pan()

AuxPort::Audio::Pan::Pan ( const Type & type = Type::Linear)

Definition at line 42 of file AuxPan.cpp.

Member Function Documentation

◆ process()

void AuxPort::Audio::Pan::process ( float & leftChannel,
float & rightChannel )

Use the function to apply Pan to a Stereo Frame.

Definition at line 61 of file AuxPan.cpp.

◆ setPan()

void AuxPort::Audio::Pan::setPan ( float pan,
float panStart,
float panEnd )

Use the setPan function to update the panning Value, Specify the range of the parameter so that the internal dsp object can remap the value.

Definition at line 47 of file AuxPan.cpp.


The documentation for this class was generated from the following files: