Oscilloscope 0.5.0
A simple oscilloscope VST
Loading...
Searching...
No Matches
DecayCounter.h
Go to the documentation of this file.
1/*
2 ==============================================================================
3
4 DecayCounter.h
5 Created: 23 Mar 2023 8:10:55pm
6 Author: covariant
7
8 ==============================================================================
9*/
10
11#pragma once
12#include <JuceHeader.h>
13#include "InitVariables.h"
14
19class DecayCounter : public juce::AudioProcessorValueTreeState::Listener
20{
21private:
27 int decayTime;
28
33 int maxDecayTime;
34
39 int framesPerSecond;
40
45 float decaySeconds;
46
47public:
54 DecayCounter(int framesPerSecond, float decaySeconds);
55
61
69 bool refreshNeeded();
70
75 void resetDecayTime();
76
84 void parameterChanged(const juce::String &parameterID, float newValue) override;
85};
bool refreshNeeded()
void resetDecayTime()
void parameterChanged(const juce::String &parameterID, float newValue) override