public class SpectralFFT extends UnitGenerator
SpectralIFFT
,
Spectrum
,
SpectralFilter
Modifier and Type | Field and Description |
---|---|
UnitInputPort |
input |
UnitSpectralOutputPort |
output
Provides complete complex spectra when the FFT completes.
|
FALSE, PORT_NAME_AMPLITUDE, PORT_NAME_CUTOFF, PORT_NAME_FREQUENCY, PORT_NAME_FREQUENCY_SCALER, PORT_NAME_INPUT, PORT_NAME_OUTPUT, PORT_NAME_PAN, PORT_NAME_PHASE, PORT_NAME_PRESSURE, PORT_NAME_TIMBRE, PORT_NAME_TIME, synthesisEngine, TRUE, VERY_SMALL_FLOAT
Constructor and Description |
---|
SpectralFFT() |
SpectralFFT(int sizeLog2) |
Modifier and Type | Method and Description |
---|---|
void |
generate(int start,
int limit)
Perform essential synthesis function.
|
int |
getOffset() |
int |
getSizeLog2() |
SpectralWindow |
getWindow() |
void |
setOffset(int offset)
The FFT will be performed on a frame that is a multiple of the size plus this offset.
|
void |
setSizeLog2(int sizeLog2)
Please do not change the size of the FFT while JSyn is running.
|
void |
setWindow(SpectralWindow window)
Multiply input data by this window before doing the FFT.
|
addPort, addPort, autoStop, convertHalfLifeToMultiplier, convertTimeToRate, flattenOutputs, generate, getCircuit, getFramePeriod, getFrameRate, getId, getPortByName, getPorts, getSynthesisEngine, getSynthesizer, getTopUnit, getUnitGenerator, incrementWrapPhase, isEnabled, isStartRequired, printConnections, printConnections, printConnections, pullData, setCircuit, setEnabled, setFrameRate, setPort, setSynthesisEngine, start, start, start, stop, stop, stop
public UnitInputPort input
public UnitSpectralOutputPort output
public SpectralFFT()
public SpectralFFT(int sizeLog2)
sizeLog2
- for example, pass 10 to get a 1024 bin FFTpublic void setSizeLog2(int sizeLog2)
sizeLog2
- for example, pass 9 to get a 512 bin FFTpublic int getSizeLog2()
public void generate(int start, int limit)
UnitGenerator
generate
in class UnitGenerator
start
- offset into port bufferslimit
- limit offset into port buffers for looppublic SpectralWindow getWindow()
public void setWindow(SpectralWindow window)
public void setOffset(int offset)
offset
- public int getOffset()