Your one-stop shop for JUCE modules, tools, assets and resources
A JUCE module for a spectrum analyzer component

A JUCE module containing the spectrum analyzer code used in Sentinel, PFT, and Orange Gate.
A basic spectrum analyzer is accomplished using two classes: vsa::AudioBufferFifo and vsa::SpectrumAnalyzerComponent.
The vsa::AudioBufferFifo lives wherever audio is being processed.
The vsa::SpectrumAnalyzerComponent lives in the message thread and regularly polls the fifo from a dedicated thread for new audio data.
vsa::AudioBufferFifo fifo;
fifo.setSize(sampleRate, 1.0); // store 1 second of data
juce::AudioBuffer<float> buffer;
m_fifo.pushAudioData(buffer); // push all audio data into the fifo
// message thread
vsa::SpectrumAnalyzerComponent spectrumAnalyzer{ fifo };
addAndMakeVisible(spectrumAnalyzer);
SpectrumAnalyzer is organized as a JUCE module.
To use it in your project include the Modules directory in CMakeLists.txt:
add_subdirectory("SpectrumAnalyzer/Modules")
Link to the following targets:
target_link_libraries("Project"
PRIVATE
vsa::vsa
vsa::vsa_spectrum_analyzer
)
Something wrong with this product?
ReportAre you the owner of this product?
Request Ownership