MCPcopy Create free account
hub / github.com/jerryuhoo/Fire / SpectrumComponent

Method SpectrumComponent

Source/Panels/SpectrogramPanel/SpectrumComponent.cpp:20–28  ·  view source on GitHub ↗

==============================================================================

Source from the content-addressed store, hash-verified

18
19//==============================================================================
20SpectrumComponent::SpectrumComponent()
21 : mStyle(1), mDrawPeak(true), mBinWidth(44100.0f / 2048.0f), numberOfBins(1024)
22{
23 spectrumData.fill(0.0f);
24 displayData.fill(0.0f); // Initialize display data
25 maxData.fill(0.0f);
26
27 startTimerHz(60); // Start a 60 FPS timer for smooth animation
28}
29
30SpectrumComponent::SpectrumComponent(int style, bool drawPeak)
31 : mStyle(style), mDrawPeak(drawPeak), mBinWidth(44100.0f / 2048.0f), numberOfBins(1024)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected