|
Oscilloscope 0.5.0
A simple oscilloscope VST
|
#include <OscilloscopeComponent.h>
Public Member Functions | |
| OscilloscopeComponent (OscilloscopeAudioProcessor &aProcessor, int sampleRate, int framesPerSecond) | |
| ~OscilloscopeComponent () | |
| void | setFramesPerSecond (int framesPerSecond) |
| void | drawGrid (juce::Graphics &g, float w, float h) |
| void | paint (juce::Graphics &g) override |
| void | resized () override |
Protected Attributes | |
| int | sampleRate |
| std::vector< float > | sampleData |
| OscilloscopeAudioProcessor & | audioProcessor |
Oscilloscope graphical component.
Inherits from JUCE Component and JUCE timer
Definition at line 23 of file OscilloscopeComponent.h.
| OscilloscopeComponent::OscilloscopeComponent | ( | OscilloscopeAudioProcessor & | aProcessor, |
| int | sampleRate, | ||
| int | framesPerSecond | ||
| ) |
Constructor.
| queueToUse | AudioBufferQueue to use |
Definition at line 13 of file OscilloscopeComponent.cpp.
| OscilloscopeComponent::~OscilloscopeComponent | ( | ) |
Destroy the Oscilloscope Component object.
Definition at line 44 of file OscilloscopeComponent.cpp.
| void OscilloscopeComponent::drawGrid | ( | juce::Graphics & | g, |
| float | w, | ||
| float | h | ||
| ) |
Draws oscilloscope's grid.
| g | JUCE Graphics . |
| w | width. |
| h | heigth. |
Definition at line 57 of file OscilloscopeComponent.cpp.
|
override |
Paints the component.
| g | JUCE Graphics . |
Definition at line 95 of file OscilloscopeComponent.cpp.
|
override |
Called when component is resized.
Definition at line 117 of file OscilloscopeComponent.cpp.
| void OscilloscopeComponent::setFramesPerSecond | ( | int | framesPerSecond | ) |
Sets frames per seconds.
| framesPerSecond | Frames per second |
Definition at line 50 of file OscilloscopeComponent.cpp.
|
protected |
Definition at line 76 of file OscilloscopeComponent.h.
|
protected |
Data currently displayed
Definition at line 75 of file OscilloscopeComponent.h.
|
protected |
Sample rate
Definition at line 74 of file OscilloscopeComponent.h.