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 |
Draws a waveform of the currently playing audio data.
pav::lib::visualizer::Waveform::Waveform | ( | ) | [inline] |
Ctor.
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.
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.
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.
mode | The visualization mode |
String pav::lib::visualizer::Waveform::toString | ( | ) | [inline] |
Returns a short string representation of this visualizer.
Implements pav::lib::visualizer::Visualizer.
final int pav::lib::visualizer::Waveform::MODE_BINS = 1 [static] |
Draw lines.
final int pav::lib::visualizer::Waveform::MODE_DOTS = 2 [static] |
Draw dots.
final int pav::lib::visualizer::Waveform::MODE_SHAPE = 3 [static] |
Draw a shape.