|
| | MagicAnalyser (int channel=-1) |
| | Creates a MagicAnalyser, that will calculate a frequency plot (FFT) each time new samples occur. More...
|
| |
| void | pushSamples (const juce::AudioBuffer< float > &buffer) override |
| | Push new samples to the buffer, so a background worker can create a frequency plot of it. More...
|
| |
| void | createPlotPaths (juce::Path &path, juce::Path &filledPath, juce::Rectangle< float > bounds, MagicPlotComponent &component) override |
| | This is the callback that creates the 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...
|
| |
| juce::TimeSliceClient * | getBackgroundJob () override |
| | 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...
|
| |
| | 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...
|
| |
This will plot the magnitudes of the frequencies in a signal.
The processing happens in a worker thread to keep the audio thread free.