com.softsynth.jsyn.circuits
Class PingSound

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

public class PingSound
extends SynthCircuit

Ping Sound Filters a sawtooth wave. The filter frequency is controlled by a short envelope.

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

Field Summary
 SynthInput amplitude
           
 SynthInput cutoff
           
 MultiplyUnit freqScalar
           
 SynthInput frequency
           
 EnvelopePlayer myEnv
           
 SynthEnvelope myEnvData
           
 Filter_StateVariable myFilter
           
 SawtoothOscillator myOsc
           
 SynthInput rate
           
 SynthInput resonance
           
 
Fields inherited from class com.softsynth.jsyn.SynthCircuit
output
 
Constructor Summary
PingSound()
           
 
Method Summary
 void setStage(int time, int stage)
          Set stage of multi-stage sound.
 void trigger()
           
 void trigger(int time, double frequency, double level)
           
 
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, 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

myOsc

public SawtoothOscillator myOsc

myFilter

public Filter_StateVariable myFilter

myEnv

public EnvelopePlayer myEnv

freqScalar

public MultiplyUnit freqScalar

myEnvData

public SynthEnvelope myEnvData

frequency

public SynthInput frequency

cutoff

public SynthInput cutoff

resonance

public SynthInput resonance

amplitude

public SynthInput amplitude

rate

public SynthInput rate
Constructor Detail

PingSound

public PingSound()
          throws SynthException
Throws:
SynthException
Method Detail

trigger

public void trigger(int time,
                    double frequency,
                    double level)
             throws SynthException
Throws:
SynthException

trigger

public void trigger()
             throws SynthException
Throws:
SynthException

setStage

public void setStage(int time,
                     int stage)
              throws SynthException
Description copied from class: SynthSound
Set stage of multi-stage sound. Typically noteOn will be stage 0, off will be 1.

Overrides:
setStage in class SynthSound
Throws:
SynthException - If an error occurs.