Package wellen

Class Pan

java.lang.Object
wellen.Pan
All Implemented Interfaces:
DSPNodeProcessSignal

public class Pan extends Object implements DSPNodeProcessSignal
position a mono signal somewhere in a 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

      public Signal process(float pSignal)
    • process_signal

      public Signal process_signal(Signal pSignal)
      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 interface DSPNodeProcessSignal
      Parameters:
      pSignal - incoming signal with 1 or more channels
      Returns:
      processed signal