com.softsynth.jsyn
Class MultiplyAddUnit

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

public class MultiplyAddUnit
extends SynthUnit

MultiplyAddUnit unit.

      output = (inputA * inputB) + inputC;

This is often used to scale a control signal and add an offset.

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

Field Summary
 SynthInput inputA
          SIGNAL_TYPE_RAW_SIGNED, -1.0 to +1.0
 SynthInput inputB
          SIGNAL_TYPE_RAW_SIGNED, -1.0 to +1.0
 SynthInput inputC
          SIGNAL_TYPE_RAW_SIGNED, -1.0 to +1.0
 SynthOutput output
          SIGNAL_TYPE_RAW_SIGNED, -1.0 to +1.0
 
Constructor Summary
MultiplyAddUnit()
           
MultiplyAddUnit(SynthContext synthContext)
          Create a SynthUnit that runs at Synth.RATE_AUDIO.
MultiplyAddUnit(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_SIGNED, -1.0 to +1.0


inputB

public SynthInput inputB
SIGNAL_TYPE_RAW_SIGNED, -1.0 to +1.0


inputC

public SynthInput inputC
SIGNAL_TYPE_RAW_SIGNED, -1.0 to +1.0


output

public SynthOutput output
SIGNAL_TYPE_RAW_SIGNED, -1.0 to +1.0

Constructor Detail

MultiplyAddUnit

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

MultiplyAddUnit

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

Throws:
SynthException - If name does not match list of valid units. Note that match is case sensitive.

MultiplyAddUnit

public MultiplyAddUnit()
                throws SynthException
Throws:
SynthException