UGen.InputType, UGen.UGenInput
Modifier and Type | Field and Description |
---|---|
UGen.UGenInput |
audio
The audio you want processed by the Vocoder.
|
UGen.UGenInput |
modulator
The signal that will be used to transform the audio input.
|
Constructor and Description |
---|
Vocoder(int windowSize,
int windowCount)
Constructs a Vocoder.
|
Modifier and Type | Method and Description |
---|---|
protected void |
sampleRateChanged()
Override this method in your derived class to receive a notification when
the sample rate of your UGen has changed.
|
protected void |
uGenerate(float[] out)
Implement this method when you extend UGen.
|
addAudio, addControl, addControl, addInput, channelCount, channelCountChanged, getLastValues, patch, patch, patch, printInputs, removeInput, sampleRate, setChannelCount, setSampleRate, tick, unpatch, unpatch
public UGen.UGenInput audio
public UGen.UGenInput modulator
public Vocoder(int windowSize, int windowCount)
windowSize
- int: the number of sample frames to use for
each FFT analysis. Smaller window sizes
will have better performance, but lower
sound quality. the window size must also
be a power of two, which is a requirement
for using an FFT.windowCount
- int: the number of overlapping windows to use.
this must be at least 1 with larger values
causing the analysis windows to overlap
with each other to a greater degree.
For instance, with a windowSize of 1024 and
a windowCount of 2, a 1024 sample frame FFT
will be calculated every 512 sample frames.
With 3 windows, every 341 samples, and so forth.
More windows generally equates to better quality.protected void sampleRateChanged()
UGen
sampleRateChanged
in class UGen
protected void uGenerate(float[] out)
UGen
getLastValues
method of your audio UGenInput to
retrieve the audio you want to modify, which you will then modify however
you need to, assigning the result to the values in channels
.