|
Oscilloscope 0.5.0
A simple oscilloscope VST
|
#include <SampleFinder.h>
Public Member Functions | |
| SampleFinder (bool isCrescent, bool isAuto) | |
| ~SampleFinder () | |
| int | findFirstSample (float triggerLevel, std::vector< float > currentlyDisplayedData) |
| void | parameterChanged (const juce::String ¶meterID, float newValue) override |
Public Attributes | |
| AutoSampleFinder | autoFinder |
| ManualSampleFinder | manualFinder |
| BaseFinder * | currentFinder |
Class finding first sample to plot handling the logic for all modalities. Add this and its autoFinder and manualFinder params as listeners of "autoTriggered" and "slopeButtonTriggered" respectively and just call findFirstSample.
Definition at line 126 of file SampleFinder.h.
| SampleFinder::SampleFinder | ( | bool | isCrescent, |
| bool | isAuto | ||
| ) |
Construct a new Sample Finder object.
| isCrescent | Whether the slope is crescent. |
| isAuto | Whether the mode is automatic. |
Definition at line 45 of file SampleFinder.cpp.
| SampleFinder::~SampleFinder | ( | ) |
Destroy the Sample Finder object
Definition at line 53 of file SampleFinder.cpp.
| int SampleFinder::findFirstSample | ( | float | triggerLevel, |
| std::vector< float > | currentlyDisplayedData | ||
| ) |
Find first sample to plot in the current modality.
| triggerLevel | Trigger level. |
| currentlyDisplayedData | Currently displayed buffer. |
Definition at line 55 of file SampleFinder.cpp.
|
override |
Sets finder according to whether the search is automatic or manual.
| parameterID | Parameter to listen (always "autoTriggered") |
| newValue | true if automatic, false otherwise |
Definition at line 62 of file SampleFinder.cpp.
| AutoSampleFinder SampleFinder::autoFinder |
Finds first sample when in automatic mode.
Definition at line 164 of file SampleFinder.h.
| BaseFinder* SampleFinder::currentFinder |
Points to the currently active finder.
Definition at line 176 of file SampleFinder.h.
| ManualSampleFinder SampleFinder::manualFinder |
Finds first sample when in manual mode.
Definition at line 170 of file SampleFinder.h.