List of all members.
Detailed Description
Draws a MEL spectrum of the currently playing audio data.
- Author:
- christopher
Constructor & Destructor Documentation
pav::lib::visualizer::MelSpectrum::MelSpectrum |
( |
|
) |
[inline] |
Member Function Documentation
void pav::lib::visualizer::MelSpectrum::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::MelSpectrum::filter |
( |
float[] |
filter |
) |
[inline] |
Filters the calculated spectrum intensities before displaying them. The process is simply carried out by multiplying the i-th spectrum intensity with the i-th value in the filter. Thus, the filter length must not be longer than the number of calculated bands, but it can be lower.
- Parameters:
-
| filter | The filter to use or null to disable filtering. Filter length must not be larger than numBands. |
void pav::lib::visualizer::MelSpectrum::process |
( |
|
) |
throws PAVException [inline] |
void pav::lib::visualizer::MelSpectrum::quantize |
( |
int |
steps |
) |
[inline] |
Sets the number of steps to use for quantization of the spectrum values or disables quantization.
- Parameters:
-
| steps | The number of quantization steps. Set to <= 0 to disable quantization |
void pav::lib::visualizer::MelSpectrum::rememberMax |
( |
boolean |
remember |
) |
[inline] |
Before drawing the maximum intensity of the spectrum data is calculated so that the output can be scaled properly. This method sets whether the maximum will be saved and reused.
- Parameters:
-
| remember | Whether or not to remember the max intensity |
void pav::lib::visualizer::MelSpectrum::setBorderColor |
( |
int |
color |
) |
[inline] |
Sets the color to use when drawing the borders of the frequency bands.
- Parameters:
-
| color | The color to use when drawing |
void pav::lib::visualizer::MelSpectrum::setNumBands |
( |
int |
num |
) |
[inline] |
Sets the number of mel bands to compute. Must be > 0.
- Parameters:
-
| num | The number of mel bands |
String pav::lib::visualizer::MelSpectrum::toString |
( |
|
) |
[inline] |
The documentation for this class was generated from the following file:
- src/pav/lib/visualizer/MelSpectrum.java