This object displays an audio histogram waveform view.
.
More...
#include <customviews.h>
|
bool | paintXAxis = true |
| flag for painting X Axis
|
|
double * | circularBuffer = nullptr |
| circular buffer to store peak values
|
|
int | writeIndex = 0 |
| circular buffer write location
|
|
int | readIndex = 0 |
| circular buffer read location
|
|
int | circularBufferLength = 0 |
| circular buffer length
|
|
CRect | currentRect |
| the rect to draw into
|
|
This object displays an audio histogram waveform view.
.
WaveView:
- uses a lock-free ring buffer for queueing up input data from the plugin
- implements ICustomView::pushDataValue() and ICustomView::updateView()
- the updateData() function finds the largest value that was pushed into the data queue and adds that to the waveform buffer (circular)
- uses a circular buffer to make waveform appear to scroll
- each new input point pushes oldest sample out of the buffer
- Author
- Will Pirkle http://www.willpirkle.com
- Version
- Revision : 1.0
- Date
- Date : 2018 / 09 / 7
◆ WaveView()
VSTGUI::WaveView::WaveView |
( |
const CRect & |
size, |
|
|
IControlListener * |
listener, |
|
|
int32_t |
tag |
|
) |
| |
WaveView constructor.
- Parameters
-
size | - the control rectangle |
listener | - the control's listener (usuall PluginGUI object) |
tag | - the control ID value |
◆ addWaveDataPoint()
void VSTGUI::WaveView::addWaveDataPoint |
( |
float |
fSample | ) |
|
add a new point to the circular buffer for painting
- Parameters
-
fSample | the absolute value of the sample |
◆ clearBuffer()
void VSTGUI::WaveView::clearBuffer |
( |
| ) |
|
reset the circular buffer for a new run
◆ draw()
void VSTGUI::WaveView::draw |
( |
CDrawContext * |
pContext | ) |
|
|
override |
override of drawing function
- Parameters
-
pContext | incoming draw context |
◆ pushDataValue()
void VSTGUI::WaveView::pushDataValue |
( |
double |
data | ) |
|
|
overridevirtual |
◆ showXAxis()
void VSTGUI::WaveView::showXAxis |
( |
bool |
_paintXAxis | ) |
|
|
inline |
toggles showng of x axis
- Parameters
-
_paintXAxis | enable/disable functionality |
◆ updateView()
void VSTGUI::WaveView::updateView |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files:
- C:/RackAFX_v7/ASPIK_Doxygen/PluginTemplate/project_source/source/CustomControls/customviews.h
- C:/RackAFX_v7/ASPIK_Doxygen/PluginTemplate/project_source/source/CustomControls/customviews.cpp