com.frinika.audio.analysis.gui
Class FFTSpectrogramDataBuilderWrapper

java.lang.Object
  extended by com.frinika.audio.analysis.gui.FFTSpectrogramDataBuilderWrapper
All Implemented Interfaces:
FFTSpectrogramControlable, SpectrumDataBuilder

public class FFTSpectrogramDataBuilderWrapper
extends java.lang.Object
implements SpectrumDataBuilder, FFTSpectrogramControlable


Constructor Summary
FFTSpectrogramDataBuilderWrapper(LimitedAudioReader reader)
           
 
Method Summary
 void addSizeObserver(SpectrogramDataListener synth)
           
 void dispose()
           
 int getBinCount()
           
 int getChunkRenderedCount()
           
 SpectrumController getController()
           
 rasmus.interpreter.sampled.util.FFT getFFT()
           
 float[] getFreqArray()
           
 float[][] getMagnitude()
           
 float[] getMagnitudeAt(long chunkPtr)
           
 float[] getPhaseFreqAt(long chunkPtr)
           
 double getSampleRate()
           
 int getSizeInChunks()
           
 float[][] getSMagnitude()
           
 float[] getSMagnitudeAt(long chunkPtr)
           
 StaticSpectrogramSynth getSynth()
           
 void setParameters(int chunkSize, int fftsize, LimitedAudioReader reader)
           
 boolean validAt(long chunkPtr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FFTSpectrogramDataBuilderWrapper

public FFTSpectrogramDataBuilderWrapper(LimitedAudioReader reader)
Method Detail

addSizeObserver

public void addSizeObserver(SpectrogramDataListener synth)
Specified by:
addSizeObserver in interface SpectrumDataBuilder

dispose

public void dispose()
Specified by:
dispose in interface SpectrumDataBuilder

getBinCount

public int getBinCount()
Specified by:
getBinCount in interface SpectrumDataBuilder

getChunkRenderedCount

public int getChunkRenderedCount()
Specified by:
getChunkRenderedCount in interface SpectrumDataBuilder

getFreqArray

public float[] getFreqArray()
Specified by:
getFreqArray in interface SpectrumDataBuilder

getMagnitude

public float[][] getMagnitude()
Specified by:
getMagnitude in interface SpectrumDataBuilder

getMagnitudeAt

public float[] getMagnitudeAt(long chunkPtr)
Specified by:
getMagnitudeAt in interface SpectrumDataBuilder

getPhaseFreqAt

public float[] getPhaseFreqAt(long chunkPtr)
Specified by:
getPhaseFreqAt in interface SpectrumDataBuilder

getSizeInChunks

public int getSizeInChunks()
Specified by:
getSizeInChunks in interface SpectrumDataBuilder

validAt

public boolean validAt(long chunkPtr)
Specified by:
validAt in interface SpectrumDataBuilder

getSampleRate

public double getSampleRate()
Specified by:
getSampleRate in interface FFTSpectrogramControlable

setParameters

public void setParameters(int chunkSize,
                          int fftsize,
                          LimitedAudioReader reader)
Specified by:
setParameters in interface FFTSpectrogramControlable

getController

public SpectrumController getController()

getSynth

public StaticSpectrogramSynth getSynth()
Specified by:
getSynth in interface SpectrumDataBuilder

getFFT

public rasmus.interpreter.sampled.util.FFT getFFT()
Specified by:
getFFT in interface SpectrumDataBuilder

getSMagnitudeAt

public float[] getSMagnitudeAt(long chunkPtr)
Specified by:
getSMagnitudeAt in interface SpectrumDataBuilder

getSMagnitude

public float[][] getSMagnitude()
Specified by:
getSMagnitude in interface SpectrumDataBuilder