Package wellen
Class Pan
java.lang.Object
wellen.Pan
- All Implemented Interfaces:
DSPNodeProcessSignal
position a mono signal somewhere in a stereo space.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
process
(float pSignal) process_signal
(Signal pSignal) map audio signal into stereo space.void
set_pan_type
(int pPanType) void
set_panning
(float pPanning) set the panning value to position the signal in stereo space.
-
Constructor Details
-
Pan
public Pan()
-
-
Method Details
-
set_pan_type
public void set_pan_type(int pPanType) -
get_panning
public float get_panning() -
set_panning
public void set_panning(float pPanning) set the panning value to position the signal in stereo space.- Parameters:
pPanning
- the value ranges from -1.0 to 1.0 where -1.0 is left and 1.0 is right channel.
-
process
-
process_signal
map audio signal into stereo space. mono signals are positioned in stereo space. stereo signals are biased according to the current panning value. signals with more than 2 channels are clipped to 2 channels.- Specified by:
process_signal
in interfaceDSPNodeProcessSignal
- Parameters:
pSignal
- incoming signal with 1 or more channels- Returns:
- processed signal
-