Public Member Functions

pav::lib::visualizer::Spectogram Class Reference

List of all members.

Public Member Functions

 Spectogram ()
void process () throws PAVException
void rememberMax (boolean remember)
void setCutoffFrequencies (int min, int max)
void noCutoffFrequencies ()
void setHighOnTop (boolean onTop)
String toString ()
void dispose ()

Detailed Description

A two dimensional spectogram.

Author:
christopher

Constructor & Destructor Documentation

pav::lib::visualizer::Spectogram::Spectogram (  )  [inline]

Ctor.


Member Function Documentation

void pav::lib::visualizer::Spectogram::dispose (  )  [inline]

Disposes this visualizer, releasing all resources that were used exclusively by this visualiter. Subsequent calls to any methods of the visualizer might cause exceptions.

Implements pav::lib::visualizer::Visualizer.

void pav::lib::visualizer::Spectogram::noCutoffFrequencies (  )  [inline]

Tells the visualizer not to use cutoff frequencies. See cutoffFrequencies().

void pav::lib::visualizer::Spectogram::process (  )  throws PAVException [inline]

Draws to the PApplet specified by drawTo.

Exceptions:
PAVException If an error occures while drawing

Implements pav::lib::visualizer::Visualizer.

void pav::lib::visualizer::Spectogram::rememberMax ( boolean  remember  )  [inline]

Before drawing the maximum intensity of the frequency data is calculated so that the output can be scaled properly. By default this information is stored and reused if the maximum of the current frame is lower. if set to false, a new maximum will be calculated for every new frame.

Parameters:
remember Whether or not to remember the max intensity
void pav::lib::visualizer::Spectogram::setCutoffFrequencies ( int  min,
int  max 
) [inline]

Sets the cutoff frequencies. This will cut all frequency bands with lower frequencies, the first used band will be the one with the frequency min in it. The same counts for max. This means that the cutoff is not very precise.

Parameters:
min The minimum frequency. Must be >= 0
max The maximum frequency. Must be <= 22050 and > min
void pav::lib::visualizer::Spectogram::setHighOnTop ( boolean  onTop  )  [inline]

Whether to draw high frequencies at the top of the visualization or not.

Parameters:
onTop Whether to draw high frequencies on top.
String pav::lib::visualizer::Spectogram::toString (  )  [inline]

Returns a short string representation of this visualizer.

Returns:
visualizer info

Implements pav::lib::visualizer::Visualizer.


The documentation for this class was generated from the following file:
 All Classes Functions Variables