Public Member Functions | Static Public Attributes

pav::lib::visualizer::Waveform Class Reference

List of all members.

Public Member Functions

 Waveform ()
void process () throws PAVException
void setMode (int mode)
void colorAbsolute (boolean absolute)
String toString ()
void dispose ()

Static Public Attributes

static final int MODE_BINS = 1
static final int MODE_DOTS = 2
static final int MODE_SHAPE = 3

Detailed Description

Draws a waveform of the currently playing audio data.

Author:
christopher

Constructor & Destructor Documentation

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

Ctor.


Member Function Documentation

void pav::lib::visualizer::Waveform::colorAbsolute ( boolean  absolute  )  [inline]

Whether to use the absolute values for coloring, i.e. whether -1 gets the same color as 1 or not.

Parameters:
absolute Whether to use absolute coloring
void pav::lib::visualizer::Waveform::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::Waveform::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::Waveform::setMode ( int  mode  )  [inline]

Sets the visualization mode. Must be a valid mode according to the MODE_ constants of this class.

Parameters:
mode The visualization mode
String pav::lib::visualizer::Waveform::toString (  )  [inline]

Returns a short string representation of this visualizer.

Returns:
visualizer info

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


Member Data Documentation

Draw lines.

Draw dots.

Draw a shape.


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