#include <gin_spectrumanalyzer.h>
Inherits juce::Component, and juce::Timer.
◆ ColourIds
| Enumerator |
|---|
| lineColourId | |
| backgroundColourId | |
| traceColourId | |
| envelopeColourId | |
◆ SpectrumAnalyzer()
| SpectrumAnalyzer::SpectrumAnalyzer |
( |
AudioFifo & |
| ) |
|
Creates a Spectrum Analyzer.
Pass a fifo to read from
◆ ~SpectrumAnalyzer()
| SpectrumAnalyzer::~SpectrumAnalyzer |
( |
| ) |
|
|
override |
◆ setNumChannels()
| void SpectrumAnalyzer::setNumChannels |
( |
int |
num | ) |
|
◆ setFrequencyRange()
| void SpectrumAnalyzer::setFrequencyRange |
( |
float |
minFreq, |
|
|
float |
maxFreq |
|
) |
| |
Set the frequency range to display (in Hz)
◆ setDbRange()
Set the dB range to display.
◆ setSampleRate()
Set the sample rate for frequency calculations.
◆ setSmoothing()
| void SpectrumAnalyzer::setSmoothing |
( |
float |
smoothing | ) |
|
Set smoothing factor for the display (0-1, higher = smoother)
◆ paint()
| void SpectrumAnalyzer::paint |
( |
juce::Graphics & |
g | ) |
|
|
override |
◆ timerCallback()
| void SpectrumAnalyzer::timerCallback |
( |
| ) |
|
|
override |
The documentation for this class was generated from the following file: