com.honksandsirens
Class StagedVowelizer
java.lang.Object
|
+--java.util.Observable
|
+--com.softsynth.jsyn.SynthObject
|
+--com.softsynth.jsyn.SynthSound
|
+--com.softsynth.jsyn.SynthCircuit
|
+--com.honksandsirens.StagedVowelizer
- public class StagedVowelizer
- extends com.softsynth.jsyn.SynthCircuit
James Forrest's Format Filter, modified with setStage() triggering vowels,
* and a rate port to control transition speed.
*
* You can connect any signal source to the input port of this circuit.
*
* Keep the amplitude of StagedVowelizer high, around 10
*
* use setStage(time, stage) to trigger a vowel.
*
* Use rate port to set speed of transition between vowels, where rate = 1 transitions in 0.1 seconds.
* transition speed in seconds = 0.1/rate
*
* @author Nick Didkovsky, didkovn@mail.rockefeller.edu
|
Field Summary |
static int |
A
|
com.softsynth.jsyn.SynthInput |
amplitude
|
static int |
E
|
static int |
ER
|
static int |
I
|
com.softsynth.jsyn.SynthInput |
input
|
static int |
NUM_FILTERS
|
static int |
NUM_FORMANTS
|
static int |
O
|
static int |
OO
|
com.softsynth.jsyn.SynthDistributor |
rate
Controls speed of transition from vowel to vowel. |
static int |
U
|
static int |
UH
|
| Fields inherited from class com.softsynth.jsyn.SynthCircuit |
output |
|
Method Summary |
void |
buildEnvelopes(double[] data)
pass in a data array, containing duration format_index pairs
ex. |
static void |
main(java.lang.String[] args)
|
void |
setStage(int time,
int stage)
stage 0..7 queues up vowel: A, E, I, O, OO, U, ER, UH |
| 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, finalize, getSynthContext, isTrackingEnabled, setSynthContext, toString, track |
| Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NUM_FILTERS
public static final int NUM_FILTERS
- See Also:
- Constant Field Values
NUM_FORMANTS
public static final int NUM_FORMANTS
- See Also:
- Constant Field Values
A
public static final int A
- See Also:
- Constant Field Values
E
public static final int E
- See Also:
- Constant Field Values
I
public static final int I
- See Also:
- Constant Field Values
O
public static final int O
- See Also:
- Constant Field Values
OO
public static final int OO
- See Also:
- Constant Field Values
U
public static final int U
- See Also:
- Constant Field Values
ER
public static final int ER
- See Also:
- Constant Field Values
UH
public static final int UH
- See Also:
- Constant Field Values
input
public com.softsynth.jsyn.SynthInput input
rate
public com.softsynth.jsyn.SynthDistributor rate
- Controls speed of transition from vowel to vowel. Range 0..2 . Transition speed in seconds = 0.1/rate
amplitude
public com.softsynth.jsyn.SynthInput amplitude
StagedVowelizer
public StagedVowelizer()
buildEnvelopes
public void buildEnvelopes(double[] data)
- pass in a data array, containing duration format_index pairs
ex. { 1.0, A, 1.5, E }
Build envelopes on the fly which deliver this.
setStage
public void setStage(int time,
int stage)
- stage 0..7 queues up vowel: A, E, I, O, OO, U, ER, UH
- Overrides:
setStage in class com.softsynth.jsyn.SynthSound
main
public static void main(java.lang.String[] args)