Oscilloscope 0.5.0
A simple oscilloscope VST
Loading...
Searching...
No Matches
GuiTransformer.h
Go to the documentation of this file.
1
12#pragma once
13#include "InitVariables.h"
14#include <JuceHeader.h>
15#include "PluginProcessor.h"
16
22class GuiTransformer : public juce::Timer, private juce::AudioProcessorValueTreeState::Listener
23{
24public:
39 float transitionDuration,
40 std::function<void()> expandLambdaFunction,
41 std::function<void()> contractLambdaFunction,
42 std::function<void()> expandStartedLambdaFunction,
43 std::function<void()> contractStartedLambdaFunction,
44 std::function<void()> expandEndedLambdaFunction,
45 std::function<void()> contractEndedLambdaFunction);
47
48private:
53 int framesRemaining;
54
59 float transitionDuration;
60
66 void timerCallback() override;
67
74 void parameterChanged(const juce::String &parameterID, float newValue) override;
75
80 std::function<void()> expandLambda;
85 std::function<void()> contractLambda;
90 std::function<void()> expandStartedLambda;
95 std::function<void()> contractStartedLambda;
100 std::function<void()> expandEndedLambda;
105 std::function<void()> contractEndedLambda;
106
112 bool isProfessional;
113};
Oscilloscope audio processor.