com.softsynth.jsyn
Class CrossFade

java.lang.Object
  extended by java.util.Observable
      extended by com.softsynth.jsyn.SynthObject
          extended by com.softsynth.jsyn.SynthSound
              extended by com.softsynth.jsyn.SynthUnit
                  extended by com.softsynth.jsyn.CrossFade

public class CrossFade
extends SynthUnit

CrossFade unit.

Mix input[0] and input[1] based on the value of "fade". When fade is -1, output is all input[0]. When fade is 0, output is all half input[0] and half input[1]. When fade is +1, output is all input[1].

Version:
JSyn Version 012
Author:
(C) 1997 Phil Burk, SoftSynth.com, All Rights Reserved
See Also:
SelectUnit

Field Summary
 SynthInput fade
          Smoothly mixes between input[0] and input[1].
 SynthInput input
          This port has two parts, 0 and 1.
 SynthOutput output
           
 
Constructor Summary
CrossFade()
           
CrossFade(SynthContext synthContext)
          Create a SynthUnit that runs at Synth.RATE_AUDIO.
CrossFade(SynthContext synthContext, int calculationRate)
           
 
Method Summary
 
Methods inherited from class com.softsynth.jsyn.SynthSound
addPort, addPort, findNamedPort, getName, getNumPorts, getPortAt, getPriority, setPriority, setStage, setStage, start, start, stop, stop
 
Methods inherited from class com.softsynth.jsyn.SynthObject
delete, deleteAll, enableDeletionByGarbageCollector, enableTracking, getPeer, getSynthContext, isTrackingEnabled, toString, track
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

input

public SynthInput input
This port has two parts, 0 and 1.


fade

public SynthInput fade
Smoothly mixes between input[0] and input[1].


output

public SynthOutput output
Constructor Detail

CrossFade

public CrossFade(SynthContext synthContext,
                 int calculationRate)
          throws SynthException
Throws:
SynthException

CrossFade

public CrossFade(SynthContext synthContext)
          throws SynthException
Create a SynthUnit that runs at Synth.RATE_AUDIO.

Throws:
SynthException - If resource allocation fails.

CrossFade

public CrossFade()
          throws SynthException
Throws:
SynthException