ofxPDSP
|
utility class to generate a waveform plot More...
#include <SampleBufferPlotter.h>
Public Member Functions | |
void | setWaveform (pdsp::SampleBuffer &sampleBuffer, int channel, ofColor color, int width, int height) |
generates the waveform grafic for the given buffer. More... | |
void | draw (int x, int y) |
draws the waveform to the given coordinates #param[in] x x coordinate #param[in] y y coordinate | |
void | draw (int x, int y, int w, int h) |
draws the waveform to the given coordinates #param[in] x x coordinate #param[in] y y coordinate #param[in] w width #param[in] h height | |
const ofFbo & | getFbo () |
returns a read-only reference to the internally stored ofFbo | |
utility class to generate a waveform plot
void pdsp::SampleBufferPlotter::setWaveform | ( | pdsp::SampleBuffer & | sampleBuffer, |
int | channel, | ||
ofColor | color, | ||
int | width, | ||
int | height | ||
) |
generates the waveform grafic for the given buffer.
[in] | sampleBuffer | your sample buffer to plot |
[in] | channel | the sample buffer channel to plot |
[in] | color | color for plotting the graphic |
[in] | width | width of the plot |
[in] | height | height of the plot |