|
Gin
|
Triggered Scope that it can be set to start on a rising or falling signal. More...
#include <gin_triggeredscope.h>
Inherits juce::Component, and juce::Timer.
Public Types | |
| enum | ColourIds { lineColourId = 0x1231e10 , backgroundColourId = 0x1231e11 , traceColourId = 0x1231e12 , envelopeColourId = 0x1231f13 } |
| enum | TriggerMode { None = 0 , Up , Down , Auto } |
| The enum to use when setting the trace trigger mode. More... | |
Public Member Functions | |
| TriggeredScope (AudioFifo &) | |
| Creates a Triggered scope. | |
| ~TriggeredScope () override | |
| Destructor. | |
| void | setNumChannels (int num) |
| void | setNumSamplesPerPixel (float newNumSamplesPerPixel) |
| Sets the number of samples represented by each pixel on the scope. | |
| void | setVerticalZoomFactor (float newVerticalZoomFactor) |
| Sets the vertical zoom factor of the display. | |
| void | setVerticalZoomOffset (float newVerticalZoomOffset, int ch) |
| Sets the vertical zoom offset of the display. | |
| void | setSingleTrigger (bool singleTrigger_) |
| Enable single trigger mode - will pause when trigger is found. | |
| bool | hasTriggered () const |
| Check if single trigger mode has triggered (and is now paused) | |
| void | setPaused (bool shouldBePaused) |
| Pause/unpause the scope display. | |
| void | setPaused (bool shouldBePaused, int lockTriggerPoint) |
| void | resetTrigger () |
| Reset/unpause after single trigger. | |
| bool | isPaused () const |
| Check if scope is paused. | |
| void | setTriggerMode (TriggerMode newTriggerMode) |
| Sets the type of change that will trigger a trace. | |
| void | setTriggerChannel (int ch) |
| Set channel to trigger on, -1 ave of all channels. | |
| void | setTriggerLevel (float l) |
| Set level to trigger on. | |
| void | setTriggerPos (float l) |
| void | setDrawTriggerPos (bool d) |
| void | setDrawCursorInfo (bool d) |
| Enable/disable cursor readout showing level and time at mouse position. | |
| void | setSampleRate (double sr) |
| Set sample rate for time display. | |
| void | setBeatSync (int beats) |
| Set beat sync mode - 0 = off, otherwise number of beats to sync to. | |
| void | setPlayheadSource (std::function< std::tuple< double, double, bool >()> source) |
| Set a function to retrieve playhead info - called from timer. | |
| void | updatePlayhead (double ppqPosition, double bpm, bool isPlaying) |
| Call this from processBlock to update playhead position. | |
| void | paint (juce::Graphics &g) override |
| void | timerCallback () override |
| void | mouseMove (const juce::MouseEvent &e) override |
| void | mouseDown (const juce::MouseEvent &e) override |
| void | mouseDrag (const juce::MouseEvent &e) override |
| void | mouseUp (const juce::MouseEvent &e) override |
| void | mouseExit (const juce::MouseEvent &e) 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.
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.
Sets the vertical zoom factor of the display.
Sets the vertical zoom offset of the display.
Enable single trigger mode - will pause when trigger is found.
| bool TriggeredScope::hasTriggered | ( | ) | const |
Check if single trigger mode has triggered (and is now paused)
| void TriggeredScope::resetTrigger | ( | ) |
Reset/unpause after single trigger.
| bool TriggeredScope::isPaused | ( | ) | const |
Check if scope is paused.
| void TriggeredScope::setTriggerMode | ( | TriggerMode | newTriggerMode | ) |
Sets the type of change that will trigger a trace.
Enable/disable cursor readout showing level and time at mouse position.
Set beat sync mode - 0 = off, otherwise number of beats to sync to.
| void TriggeredScope::setPlayheadSource | ( | std::function< std::tuple< double, double, bool >()> | source | ) |
Set a function to retrieve playhead info - called from timer.
Call this from processBlock to update playhead position.
|
override |
|
override |