public class AudioOverviewVisualisation.AudioOverviewGenerator extends AudioProcessor
getAudioOverview(int, int) allows resampling of that overview.| Constructor and Description |
|---|
AudioOverviewGenerator(int nSamplesPerBin,
int nChannels)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
gnu.trove.list.array.TFloatArrayList[] |
getAudioOverview() |
gnu.trove.list.array.TFloatArrayList |
getAudioOverview(int channel,
int nBins)
Refactors the overview to given another overview.
|
Polygon |
getChannelPolygon(int channel,
boolean mirror,
int width)
Returns a polygon representing the channel overview.
|
SampleChunk |
process(SampleChunk samples)
Function that takes a sample chunk and processes the chunk.
|
getLength, getUnderlyingStream, nextSampleChunk, process, processingComplete, reset, setUnderlyingStreamiterator, seekclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic AudioOverviewGenerator(int nSamplesPerBin, int nChannels)
nSamplesPerBin - The number of samples per binnChannels - The number of channelspublic SampleChunk process(SampleChunk samples)
process in class AudioProcessorsamples - The sample chunk to process.AudioProcessor.process(org.openimaj.audio.SampleChunk)public gnu.trove.list.array.TFloatArrayList[] getAudioOverview()
public gnu.trove.list.array.TFloatArrayList getAudioOverview(int channel, int nBins)
channel - The channel to getnBins - The number of bins in the overviewpublic Polygon getChannelPolygon(int channel, boolean mirror, int width)
channel - The channel to get the polygon formirror - whether to mirror the polygonwidth - The width of the overview to return