Oscilloscope 0.5.0
A simple oscilloscope VST
Loading...
Searching...
No Matches
TriggeredOscilloscope.h
Go to the documentation of this file.
1/*
2 ==============================================================================
3
4 TriggeredOscilloscope.h
5 Created: 28 Feb 2023 4:24:56pm
6 Author: wadda
7
8 ==============================================================================
9*/
10
11#pragma once
13#include "DecayCounter.h"
14#include "InitVariables.h"
15#include "ColorPalette.h"
16#include "SampleFinder.h"
17
19{
20
21public:
29
35
40 void refreshDislayed();
41
42private:
47 float triggerLevel;
48
53 std::unique_ptr<DecayCounter> decayCounter;
54
59 std::vector<float> currentlyDisplayedData;
60
65 std::vector<float>::iterator firstSampleToPlot;
66
71 SampleFinder sampleFinder;
72
73 void plot(
74 juce::Graphics &g,
75 juce::Rectangle<float> rect,
76 float scaler = float(1),
77 float offset = float(0)) override;
78
79 void subclassSpecificCallback() override;
80};
Oscilloscope audio processor.