public class OLA extends AbstractSignalProcessor<AudioBuffer,AudioBuffer>
SlidingWindow.SlidingWindowlastOut, signalProcessorSupport| Constructor and Description |
|---|
OLA()
Creates a processor with a window length of 2048 frames and 1024 hop size.
|
OLA(int sliceLengthInFrames)
Produces windows with a given frame length.
|
OLA(int sliceLengthInFrames,
int hopSizeInFrames)
Produces windows of frames that don't overlap.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
void |
flush()
Flushes this processor and its kids.
|
int |
getHopSizeInFrames() |
int |
getSliceLengthInFrames() |
int |
hashCode() |
void |
process(AudioBuffer in)
Asks this processor to work on the provided data and pipe the
output to the connected processors' own
SignalProcessor.process(Object) method.Implementing methods must not modify or hold on to the provided data. |
protected AudioBuffer |
processNext(AudioBuffer input)
Processes the given input and returns some output.
|
AudioBuffer |
read()
Provide the next chunk of output data.
|
void |
setHopSizeInFrames(int hopSizeInFrames) |
void |
setSliceLengthInFrames(int sliceLengthInFrames) |
String |
toString() |
connectTo, connectTo, connectTo, disconnectFrom, getConnectedProcessors, getConnectedSource, getId, getOutput, reset, setIdpublic OLA()
public OLA(int sliceLengthInFrames,
int hopSizeInFrames)
sliceLengthInFrames - frames per windowhopSizeInFrames - number of frames two consecutive input windows overlappublic OLA(int sliceLengthInFrames)
sliceLengthInFrames - frames per windowpublic int getHopSizeInFrames()
public void setHopSizeInFrames(int hopSizeInFrames)
public int getSliceLengthInFrames()
public void setSliceLengthInFrames(int sliceLengthInFrames)
protected AudioBuffer processNext(AudioBuffer input) throws IOException
AbstractSignalProcessorprocessNext in class AbstractSignalProcessor<AudioBuffer,AudioBuffer>input - input guaranteed not to be null.IOException - if an IO error occurspublic void process(AudioBuffer in) throws IOException
SignalProcessorSignalProcessor.process(Object) method.Object.clone() method.
It is the responsibility of implementing classes to call the SignalProcessor.process(Object)
method of any connected processors. To manage connected processors classes may want
to use a SignalProcessorSupport instance.process in interface SignalProcessor<AudioBuffer,AudioBuffer>process in class AbstractSignalProcessor<AudioBuffer,AudioBuffer>in - data to processIOException - if a processing error occursSignalProcessor.getConnectedProcessors()public void flush()
throws IOException
AbstractSignalProcessorflush in interface SignalProcessor<AudioBuffer,AudioBuffer>flush in class AbstractSignalProcessor<AudioBuffer,AudioBuffer>IOException - if a processing error occurspublic AudioBuffer read() throws IOException
SignalSourceSignalSource data, typically an SignalPullProcessor.read in interface SignalSource<AudioBuffer>read in class AbstractSignalProcessor<AudioBuffer,AudioBuffer>AudioBuffer, null if no more data is availableIOException - if something goes wrongCopyright © 2011–2020 tagtraum industries incorporated. All rights reserved.