com.softsynth.jsyn
Class CompareUnit

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

public class CompareUnit
extends SynthUnit

CompareUnit unit.

Output logic level value.

output = ( inputA > InputB ) ? 1.0 : 0.0;

Version:
JSyn Version 006
Author:
(C) 1997 Phil Burk, SoftSynth.com, All Rights Reserved
See Also:
MinimumUnit, SchmidtTrigger

Field Summary
 SynthInput inputA
           
 SynthInput inputB
           
 SynthOutput output
           
 
Constructor Summary
CompareUnit()
           
CompareUnit(SynthContext synthContext)
          Create one that runs at Synth.RATE_AUDIO.
CompareUnit(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

inputA

public SynthInput inputA

inputB

public SynthInput inputB

output

public SynthOutput output
Constructor Detail

CompareUnit

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

CompareUnit

public CompareUnit(SynthContext synthContext)
            throws SynthException
Create one that runs at Synth.RATE_AUDIO.

Throws:
SynthException - If resource allocation fails.

CompareUnit

public CompareUnit()
            throws SynthException
Throws:
SynthException