com.softsynth.jsyn.circuits
Class PoissonTrigger

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.SynthCircuit
                  extended by com.softsynth.jsyn.circuits.PoissonTrigger

public class PoissonTrigger
extends SynthCircuit

Generate triggers with a Poisson distribution. Triggers are generated by comparing WhiteNoise output with a threshold. The lower the threshold, the more frequent the triggers.

Port "probability" controls the probability of a pulse happening on any given sample frame. The average rate of the pulses is:

    averageRate = (probability / Synth.getFrameRate())
 

Author:
(C) 1997 Phil Burk, SoftSynth.com, All Rights Reserved
See Also:
ParabolicGrain

Field Summary
 CompareUnit comparator
           
 SynthInput probability
          Probability of getting a trigger on any given sample frame.
 SubtractUnit subtractor
           
 WhiteNoise whiteNoise
           
 
Fields inherited from class com.softsynth.jsyn.SynthCircuit
output
 
Constructor Summary
PoissonTrigger()
           
 
Method Summary
 
Methods inherited from class com.softsynth.jsyn.SynthCircuit
add, compile, delete, getPeer, loadByName
 
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
deleteAll, enableDeletionByGarbageCollector, enableTracking, 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

whiteNoise

public WhiteNoise whiteNoise

comparator

public CompareUnit comparator

subtractor

public SubtractUnit subtractor

probability

public SynthInput probability
Probability of getting a trigger on any given sample frame.

Constructor Detail

PoissonTrigger

public PoissonTrigger()
               throws SynthException
Throws:
SynthException