com.softsynth.jsyn
Class WaveShaper
java.lang.Object
java.util.Observable
com.softsynth.jsyn.SynthObject
com.softsynth.jsyn.SynthSound
com.softsynth.jsyn.SynthUnit
com.softsynth.jsyn.SynthFilter
com.softsynth.jsyn.WaveShaper
public class WaveShaper
- extends SynthFilter
WaveShaper unit.
Lookup a value by interpolating between values in a Table. When Input is
-1.0, the value from the table is Table[0]. When Input is +1.0, then the
value from the table is Table[NumValues-1]. The output is the interpolated
table value times the Amplitude.
The name "wave shaping" refers to the synthesis technique that involves connecting
an oscillator such as a SineOscillator or SawtoothOscillator to the input of
this unit. By modifying the contents of the table, and the amplitude of the input,
interesting output waveforms can be created.
- Version:
- JSyn Version 005
- Author:
- (C) 1997 Phil Burk, SoftSynth.com, All Rights Reserved
- See Also:
Synth
,
SynthChannelData
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 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 |
amplitude
public SynthInput amplitude
tablePort
public SynthTablePort tablePort
WaveShaper
public WaveShaper(SynthContext synthContext,
int calculationRate)
throws SynthException
- Throws:
SynthException
WaveShaper
public WaveShaper(SynthContext synthContext)
throws SynthException
- Create a WaveShaper that runs at Synth.RATE_AUDIO.
- Throws:
SynthException
- If out of memory.
WaveShaper
public WaveShaper()
throws SynthException
- Throws:
SynthException