|
Oscilloscope 0.5.0
A simple oscilloscope VST
|
#include <DecayCounter.h>
Public Member Functions | |
| DecayCounter (int framesPerSecond, float decaySeconds) | |
| ~DecayCounter () | |
| bool | refreshNeeded () |
| void | resetDecayTime () |
| void | parameterChanged (const juce::String ¶meterID, float newValue) override |
Class keeping track of decay time of the Oscilloscope
Definition at line 19 of file DecayCounter.h.
| DecayCounter::DecayCounter | ( | int | framesPerSecond, |
| float | decaySeconds | ||
| ) |
Construct a new Decay Counter object
| framesPerSecond | PluginEditor refresh rate. |
| decaySeconds | Decay time in seconds. |
Definition at line 13 of file DecayCounter.cpp.
| DecayCounter::~DecayCounter | ( | ) |
Destroy the Decay Counter object
Definition at line 22 of file DecayCounter.cpp.
|
override |
Listens to changes in AudioProcessorValueTreeState's "decayTime" and updates decayTime accordingly
| parameterID | Always "decayTime". |
| newValue | New value (between 0 and 1). |
Definition at line 46 of file DecayCounter.cpp.
| bool DecayCounter::refreshNeeded | ( | ) |
Decrements decay time and returns whether if it is time to refresh the wave plot.
Definition at line 26 of file DecayCounter.cpp.
| void DecayCounter::resetDecayTime | ( | ) |
Resets decay time to framesPerSeconds * decaySeconds
Definition at line 40 of file DecayCounter.cpp.