File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed
examples/graphics/source/examples Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -441,7 +441,7 @@ class SpectrumAnalyzerDemo
441441 analyzerComponent.setReleaseTimeSeconds (value);
442442 };
443443 addAndMakeVisible (*releaseSlider);
444-
444+
445445 // Overlap control for responsiveness
446446 overlapSlider = std::make_unique<yup::Slider> (yup::Slider::LinearBarHorizontal, " Overlap" );
447447 overlapSlider->setRange ({ 0.0 , 0.95 });
@@ -547,7 +547,7 @@ class SpectrumAnalyzerDemo
547547
548548 parameterLabels[6 ]->setBounds (displaySection.removeFromTop (labelHeight));
549549 displayTypeCombo->setBounds (displaySection.removeFromTop (controlHeight));
550-
550+
551551 parameterLabels[8 ]->setBounds (overlapSection.removeFromTop (labelHeight));
552552 overlapSlider->setBounds (overlapSection.removeFromTop (controlHeight));
553553
Original file line number Diff line number Diff line change @@ -168,14 +168,14 @@ class YUP_API SpectrumAnalyzerComponent
168168
169169 /* * Returns the current release time in seconds. */
170170 float getReleaseTimeSeconds () const noexcept { return releaseTimeSeconds; }
171-
171+
172172 // ==============================================================================
173173 /* * Sets the overlap factor for more responsive spectrum analysis.
174174
175175 @param overlapFactor overlap factor (0.0 = no overlap, 0.75 = 75% overlap)
176176 */
177177 void setOverlapFactor (float overlapFactor);
178-
178+
179179 /* * Returns the current overlap factor. */
180180 float getOverlapFactor () const noexcept ;
181181
Original file line number Diff line number Diff line change @@ -130,10 +130,10 @@ bool SpectrumAnalyzerState::getFFTData (float* destBuffer) noexcept
130130 {
131131 // Advance read position by hopSize (not full FFT size) for overlap processing
132132 audioFifo->finishedRead (hopSize);
133-
133+
134134 // Check if we still have enough samples for next FFT
135135 fftDataReady = (audioFifo->getNumReady () >= fftSize);
136-
136+
137137 return true ;
138138 }
139139
@@ -178,7 +178,7 @@ int SpectrumAnalyzerState::getFreeSpace() const noexcept
178178void SpectrumAnalyzerState::setOverlapFactor (float newOverlapFactor)
179179{
180180 jassert (newOverlapFactor >= 0 .0f && newOverlapFactor < 1 .0f );
181-
181+
182182 if (overlapFactor != newOverlapFactor)
183183 {
184184 overlapFactor = jlimit (0 .0f , 0 .95f , newOverlapFactor);
Original file line number Diff line number Diff line change @@ -115,17 +115,17 @@ class YUP_API SpectrumAnalyzerState
115115
116116 /* * Returns the amount of free space in the FIFO. */
117117 int getFreeSpace () const noexcept ;
118-
118+
119119 // ==============================================================================
120120 /* * Sets the overlap factor for more responsive spectrum analysis.
121121
122122 @param overlapFactor overlap factor (0.0 = no overlap, 0.75 = 75% overlap)
123123 */
124124 void setOverlapFactor (float overlapFactor);
125-
125+
126126 /* * Returns the current overlap factor. */
127127 float getOverlapFactor () const noexcept { return overlapFactor; }
128-
128+
129129 /* * Returns the hop size (samples between FFT frames). */
130130 int getHopSize () const noexcept ;
131131
@@ -134,9 +134,9 @@ class YUP_API SpectrumAnalyzerState
134134 void initializeFifo ();
135135
136136 int fftSize = 2048 ;
137- int fifoSize = 8192 ; // Will be updated in initializeFifo()
137+ int fifoSize = 8192 ; // Will be updated in initializeFifo()
138138 float overlapFactor = 0 .75f ; // 75% overlap by default
139- int hopSize = 512 ; // Will be computed from overlap factor
139+ int hopSize = 512 ; // Will be computed from overlap factor
140140
141141 std::unique_ptr<AbstractFifo> audioFifo;
142142 std::vector<float > sampleBuffer;
You can’t perform that action at this time.
0 commit comments