com.softsynth.jsyn
Class PulseOscillator

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.SynthOscillator
                      extended by com.softsynth.jsyn.PulseOscillator

public class PulseOscillator
extends SynthOscillator

PulseOscillator unit.

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

Field Summary
 SynthInput width
          Level for comparator used to generate pulse wave.
 
Fields inherited from class com.softsynth.jsyn.SynthOscillator
amplitude, frequency, output, phase
 
Constructor Summary
PulseOscillator()
           
PulseOscillator(SynthContext synthContext)
          Create a PulseOscillator that runs at Synth.RATE_AUDIO.
PulseOscillator(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

width

public SynthInput width
Level for comparator used to generate pulse wave. 0 gives a 50% duty cycle pulse wave. Positive values cause the positive portion of the pulse to be wider than the negative. Negative values cause the negative portion of the pulse to be wider than the positive. The range is -1.0 to +1.0, defaults to 0.0.

Constructor Detail

PulseOscillator

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

PulseOscillator

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

Throws:
SynthException - If out of memory.

PulseOscillator

public PulseOscillator()
                throws SynthException
Throws:
SynthException