com.softsynth.jsyn
Class AddUnsignedUnit

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

public class AddUnsignedUnit
extends SynthUnit

This unit performs UNsigned addition on its two inputs.

output = inputA + inputB

output is clipped to the UNSIGNED range 0.0 to +2.0

Version:
JSyn Version 005
Author:
(C) 1997 Phil Burk, SoftSynth.com, All Rights Reserved
See Also:
AddUnit, SubtractUnit

Field Summary
 SynthInput inputA
          SIGNAL_TYPE_RAW_UNSIGNED, range is 0.0 to 2.0
 SynthInput inputB
          SIGNAL_TYPE_RAW_UNSIGNED, range is 0.0 to 2.0
 SynthOutput output
          SIGNAL_TYPE_RAW_UNSIGNED, range is 0.0 to 2.0
 
Constructor Summary
AddUnsignedUnit()
           
AddUnsignedUnit(SynthContext synthContext)
          Create one that runs at Synth.RATE_AUDIO.
AddUnsignedUnit(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
SIGNAL_TYPE_RAW_UNSIGNED, range is 0.0 to 2.0


inputB

public SynthInput inputB
SIGNAL_TYPE_RAW_UNSIGNED, range is 0.0 to 2.0


output

public SynthOutput output
SIGNAL_TYPE_RAW_UNSIGNED, range is 0.0 to 2.0

Constructor Detail

AddUnsignedUnit

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

AddUnsignedUnit

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

Throws:
SynthException - If resource allocation fails.

AddUnsignedUnit

public AddUnsignedUnit()
                throws SynthException
Throws:
SynthException