Main Page   Packages   Class Hierarchy   Compound List   File List   Compound Members  

meapsoft.STFT Class Reference

Collaboration diagram for meapsoft.STFT:

Collaboration graph
[legend]
List of all members.

Detailed Description

A class to extract and hold STFT info from an AudioInputStream.

Calls listeners when a new frame is added. Calculates the log magnitude spectrogram.

Author:
Mike Mandel (mim@ee.columbia.edu)

Definition at line 39 of file STFT.java.

Public Methods

int readFrames (long nframes)
 Fill this STFT object with up to the next nframes frames of data.

long getLastFrameAddress ()
 Get the frame address of the last frame read into this object.


Static Public Methods

RingMatrix getSTFT (double[] samples, int nfft)
 Get the STFT of samples, with no overlap between frames.

RingMatrix getSTFT (double[] samples, int nfft, int nhop)
 Get the STFT of samples.


Member Function Documentation

int meapsoft.STFT.readFrames long    nframes [inline]
 

Fill this STFT object with up to the next nframes frames of data.

Parameters:
nframes  number of audio frames to read
Returns:
the number of frames actually read (will be less than nframes if the end of the audio data is reached first.

Definition at line 342 of file STFT.java.

References meapsoft.RingMatrix.checkInColumn(), meapsoft.RingMatrix.checkOutColumn(), and meapsoft.FFT.fft().

Referenced by meapsoft.FeatExtractor.processFeatFile().


The documentation for this class was generated from the following file:
Generated on Tue Feb 6 19:02:30 2007 for MEAPsoft by doxygen1.2.18