com.softsynth.jsyn
Class FourWayFade

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.FourWayFade

public class FourWayFade
extends SynthUnit

FourWayFade unit.

Mix inputs 0-3 based on the value of two fade ports. You can think of the four inputs arranged clockwise as follows.

     input[0] ---- input[1]
       |             |
       |             |
       |             |
     input[3] ---- input[2]
The "fade" port has two parts. Fade[0] fades between the pair of inputs (0&3) and the pair of inputs (1&2). Fade[1] fades between the pair of inputs (0&1) and the pair of inputs (3&2).
   Fade[0]    Fade[1]    Output
     -1         -1       Input[3]
     -1         +1       Input[0]
     +1         -1       Input[2]
     +1         +1       Input[1]


     -----Fade[0]----->

        A
        |
        |
     Fade[1]
        |
        |
 

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

Field Summary
 SynthInput fade
          This port has two parts, 0 and 1, which fade between "left-to-right" and "back-to-front".
 SynthInput input
          This port has four parts, 0,1,2 and 3.
 SynthOutput output
           
 
Constructor Summary
FourWayFade()
           
FourWayFade(SynthContext synthContext)
          Create a SynthUnit that runs at Synth.RATE_AUDIO.
FourWayFade(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 four parts, 0,1,2 and 3.


fade

public SynthInput fade
This port has two parts, 0 and 1, which fade between "left-to-right" and "back-to-front".


output

public SynthOutput output
Constructor Detail

FourWayFade

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

FourWayFade

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

Throws:
SynthException - If resource allocation fails.

FourWayFade

public FourWayFade()
            throws SynthException
Throws:
SynthException