public class HanningAudioProcessor extends WeightedWindowedAudioProcessor
useWeights, weightTable
Constructor and Description |
---|
HanningAudioProcessor(AudioStream stream,
int sizeRequired)
Chainable constructor.
|
HanningAudioProcessor(AudioStream as,
int nSamplesInWindow,
int nSamplesOverlap)
Chainable constructor that takes the size of the window and
the number of samples overlap.
|
HanningAudioProcessor(int sizeRequired)
Default constructor for non chainable processing.
|
HanningAudioProcessor(int nSamplesInWindow,
int nSamplesOverlap)
Constructor that takes the size of the window and the number of samples
overlap.
|
Modifier and Type | Method and Description |
---|---|
protected void |
generateWeightTableCache(int length,
int nc)
Generate the cos table cache
|
getWeights, getWindowSum, getWindowSum, process, process, processSamples
getWindowSize, getWindowStep, isOverlapping, nextSampleChunk, setWindowSize, setWindowStep
getLength, getUnderlyingStream, process, processingComplete, reset, setUnderlyingStream
iterator, seek
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public HanningAudioProcessor(int sizeRequired)
sizeRequired
- Size of the window requiredpublic HanningAudioProcessor(AudioStream stream, int sizeRequired)
stream
- The audio stream to processsizeRequired
- The size of window required.public HanningAudioProcessor(int nSamplesInWindow, int nSamplesOverlap)
nSamplesInWindow
- Samples in windownSamplesOverlap
- Samples in window overlappublic HanningAudioProcessor(AudioStream as, int nSamplesInWindow, int nSamplesOverlap)
as
- The chained audio streamnSamplesInWindow
- Samples in windownSamplesOverlap
- Samples in window overlapprotected void generateWeightTableCache(int length, int nc)
generateWeightTableCache
in class WeightedWindowedAudioProcessor
length
- The length of the window to generate (per channel)nc
- The number of channels for which to generate a weight table