#include <gin_spectrumanalyzer.h>
Inherits juce::Component, and juce::Timer.
◆ ColourIds
| Enumerator |
|---|
| lineColourId | |
| backgroundColourId | |
| traceColourId | |
| envelopeColourId | |
| gridColourId | |
◆ 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()
| void SpectrumAnalyzer::setDbRange |
( |
float | minDb, |
|
|
float | maxDb ) |
Set the dB range to display.
◆ setSampleRate()
| void SpectrumAnalyzer::setSampleRate |
( |
double | sr | ) |
|
Set the sample rate for frequency calculations.
◆ setSmoothing()
| void SpectrumAnalyzer::setSmoothing |
( |
float | smoothing | ) |
|
Set smoothing factor for the display (0-1, higher = smoother).
◆ setDrawGrid()
| void SpectrumAnalyzer::setDrawGrid |
( |
bool | on | ) |
|
Enable or disable grid drawing.
◆ paint()
| void SpectrumAnalyzer::paint |
( |
juce::Graphics & | g | ) |
|
|
override |
◆ timerCallback()
| void SpectrumAnalyzer::timerCallback |
( |
| ) |
|
|
override |
The documentation for this class was generated from the following file: