com.softsynth.jsyn.circuits
Class PingSound
java.lang.Object
java.util.Observable
com.softsynth.jsyn.SynthObject
com.softsynth.jsyn.SynthSound
com.softsynth.jsyn.SynthCircuit
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
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.SynthSound |
addPort, addPort, findNamedPort, getName, getNumPorts, getPortAt, getPriority, setPriority, setStage, start, start, stop, stop |
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 |
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
PingSound
public PingSound()
throws SynthException
- Throws:
SynthException
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.