ofxPDSP
pdsp::SampleBufferPlotter Class Reference

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
 

Detailed Description

utility class to generate a waveform plot

Member Function Documentation

◆ setWaveform()

void pdsp::SampleBufferPlotter::setWaveform ( pdsp::SampleBuffer sampleBuffer,
int  channel,
ofColor  color,
int  width,
int  height 
)

generates the waveform grafic for the given buffer.

Parameters
[in]sampleBufferyour sample buffer to plot
[in]channelthe sample buffer channel to plot
[in]colorcolor for plotting the graphic
[in]widthwidth of the plot
[in]heightheight of the plot

The documentation for this class was generated from the following files: