This class collects your samples in a circular buffer and allows the GUI to draw it in the style of an oscilloscope. More...
Inheritance diagram for MagicOscilloscope:Public Member Functions | |
| MagicOscilloscope (int channel=-1) | |
| Create an oscilloscope adapter to push samples into for later display in the GUI. More... | |
| void | pushSamples (const juce::AudioBuffer< float > &buffer) override |
| Push samples to a buffer to be visualised. More... | |
| void | createPlotPaths (juce::Path &path, juce::Path &filledPath, juce::Rectangle< float > bounds, MagicPlotComponent &component) override |
| This is the callback that creates the frequency plot for drawing. More... | |
| void | prepareToPlay (double sampleRate, int samplesPerBlockExpected) override |
| This method is called by the MagicProcessorState to allow the plot computation to be set up. More... | |
Public Member Functions inherited from MagicPlotSource | |
| MagicPlotSource ()=default | |
| virtual | ~MagicPlotSource ()=default |
| virtual bool | isActive () const |
| You can add an active state to your plot to allow to paint in different colours. More... | |
| virtual void | setActive (bool shouldBeActive) |
| juce::int64 | getLastDataUpdate () const |
| Use this information to invalidate your plot drawing. More... | |
| void | resetLastDataFlag () |
| Call this to invalidate the lastData flag. More... | |
| virtual juce::TimeSliceClient * | getBackgroundJob () |
| If your plot needs background processing, return here a pointer to your TimeSliceClient, and it will automatically be added to the common background thread. More... | |
This class collects your samples in a circular buffer and allows the GUI to draw it in the style of an oscilloscope.
| MagicOscilloscope | ( | int | channel = -1 | ) |
Create an oscilloscope adapter to push samples into for later display in the GUI.
| channel | lets you select the channel to analyse. -1 means summing all together (the default) |
|
overridevirtual |
Push samples to a buffer to be visualised.
Implements MagicPlotSource.
References MagicPlotSource::resetLastDataFlag().
|
overridevirtual |
This is the callback that creates the frequency plot for drawing.
| path | is the path instance that is constructed by the MagicPlotSource |
| filledPath | is the path instance that is constructed by the MagicPlotSource to be filled |
| bounds | the bounds of the plot |
| component | grants access to the plot component, e.g. to find the colours from it |
Implements MagicPlotSource.
|
overridevirtual |
This method is called by the MagicProcessorState to allow the plot computation to be set up.
Implements MagicPlotSource.