Package wellen.dsp

Class Crossfader

java.lang.Object
wellen.dsp.Crossfader
All Implemented Interfaces:
DSPNodeOutput

public class Crossfader extends Object implements DSPNodeOutput
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    float
    the crossfade value where a value of 0 means Input A at 100% and Input B at 0%, a value of 0.5 means Input A at 50% and Input B at 50%, and a value of 1 means Input A at 0% and Input B at 100%.
     
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    returns the output signal.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ratio

      public float ratio
      the crossfade value where a value of 0 means Input A at 100% and Input B at 0%, a value of 0.5 means Input A at 50% and Input B at 50%, and a value of 1 means Input A at 0% and Input B at 100%.
    • signal_a

      public DSPNodeOutput signal_a
    • signal_b

      public DSPNodeOutput signal_b
  • Constructor Details

    • Crossfader

      public Crossfader()
  • Method Details

    • output

      public float output()
      Description copied from interface: DSPNodeOutput
      returns the output signal.
      Specified by:
      output in interface DSPNodeOutput
      Returns:
      processed signal