Gin
|
Triggered Scope that it can be set to start on a rising or falling signal. More...
Inherits juce::Component, and juce::Timer.
Public Types | |
enum | ColourIds { lineColourId = 0x1231e10 , backgroundColourId = 0x1231e11 , traceColourId = 0x1231e12 , envelopeColourId = 0x1231f13 } |
enum | TriggerMode { None = 0 , Up , Down } |
The enum to use when setting the trace trigger mode. More... | |
Public Member Functions | |
TriggeredScope (AudioFifo &) | |
Creates a Triggered scope. More... | |
~TriggeredScope () override | |
Destructor. More... | |
void | setNumChannels (int num) |
void | setNumSamplesPerPixel (float newNumSamplesPerPixel) |
Sets the number of samples represented by each pixel on the scope. More... | |
void | setVerticalZoomFactor (float newVerticalZoomFactor) |
Sets the vertical zoom factor of the display. More... | |
void | setVerticalZoomOffset (float newVerticalZoomOffset, int ch) |
Sets the vertical zoom offset of the display. More... | |
void | setSingleTrigger (bool singleTrigger_) |
Freeze scope once triggered. More... | |
void | resetTrigger () |
Start running again once triggered. More... | |
void | setTriggerMode (TriggerMode newTriggerMode) |
Sets the type of change that will trigger a trace. More... | |
void | setTriggerChannel (int ch) |
Set channel to trigger on, -1 ave of all channels. More... | |
void | setTriggerLevel (float l) |
Set level to trigger on. More... | |
void | setTriggerPos (float l) |
void | setDrawTriggerPos (bool d) |
void | paint (juce::Graphics &g) override |
void | timerCallback () override |
Triggered Scope that it can be set to start on a rising or falling signal.
This makes it extremely useful for very zoomed-in waveform viewing.
TriggeredScope::TriggeredScope | ( | AudioFifo & | ) |
Creates a Triggered scope.
Pass a fifo to read from
|
override |
Destructor.
void TriggeredScope::setNumChannels | ( | int | num | ) |
void TriggeredScope::setNumSamplesPerPixel | ( | float | newNumSamplesPerPixel | ) |
Sets the number of samples represented by each pixel on the scope.
Setting this to a low number will give a very zoomed in display, a high number zoom out.
void TriggeredScope::setVerticalZoomFactor | ( | float | newVerticalZoomFactor | ) |
Sets the vertical zoom factor of the display.
void TriggeredScope::setVerticalZoomOffset | ( | float | newVerticalZoomOffset, |
int | ch | ||
) |
Sets the vertical zoom offset of the display.
void TriggeredScope::setSingleTrigger | ( | bool | singleTrigger_ | ) |
Freeze scope once triggered.
void TriggeredScope::resetTrigger | ( | ) |
Start running again once triggered.
void TriggeredScope::setTriggerMode | ( | TriggerMode | newTriggerMode | ) |
Sets the type of change that will trigger a trace.
void TriggeredScope::setTriggerChannel | ( | int | ch | ) |
Set channel to trigger on, -1 ave of all channels.
void TriggeredScope::setTriggerLevel | ( | float | l | ) |
Set level to trigger on.
void TriggeredScope::setTriggerPos | ( | float | l | ) |
void TriggeredScope::setDrawTriggerPos | ( | bool | d | ) |
|
override |
|
override |