com.softsynth.jsyn
Class WaveShaper

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.SynthFilter
                      extended by 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

Field Summary
 SynthInput amplitude
           
 SynthTablePort tablePort
           
 
Fields inherited from class com.softsynth.jsyn.SynthFilter
input, output
 
Constructor Summary
WaveShaper()
           
WaveShaper(SynthContext synthContext)
          Create a WaveShaper that runs at Synth.RATE_AUDIO.
WaveShaper(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

amplitude

public SynthInput amplitude

tablePort

public SynthTablePort tablePort
Constructor Detail

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