|
Gin
|
#include <gin_spectrumanalyzer.h>
Inherits juce::Component, and juce::Timer.
Public Types | |
| enum | ColourIds { lineColourId = 0x1291e10 , backgroundColourId = 0x1291e11 , traceColourId = 0x1291e12 , envelopeColourId = 0x1291f13 , gridColourId = 0x1291e14 } |
Public Member Functions | |
| SpectrumAnalyzer (AudioFifo &) | |
| Creates a Spectrum Analyzer. | |
| ~SpectrumAnalyzer () override | |
| Destructor. | |
| void | setNumChannels (int num) |
| void | setFrequencyRange (float minFreq, float maxFreq) |
| Set the frequency range to display (in Hz) | |
| void | setDbRange (float minDb, float maxDb) |
| Set the dB range to display. | |
| void | setSampleRate (double sr) |
| Set the sample rate for frequency calculations. | |
| void | setSmoothing (float smoothing) |
| Set smoothing factor for the display (0-1, higher = smoother) | |
| void | setDrawGrid (bool on) |
| Enable or disable grid drawing. | |
| void | paint (juce::Graphics &g) override |
| void | timerCallback () override |
| SpectrumAnalyzer::SpectrumAnalyzer | ( | AudioFifo & | ) |
Creates a Spectrum Analyzer.
Pass a fifo to read from
|
override |
Destructor.
Set the frequency range to display (in Hz)
Set smoothing factor for the display (0-1, higher = smoother)
|
override |
|
override |