Skip to content

Commit 50571b1

Browse files
committed
Code formatting
1 parent 02cad90 commit 50571b1

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

examples/graphics/source/examples/SpectrumAnalyzer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

modules/yup_audio_gui/displays/yup_SpectrumAnalyzerComponent.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

modules/yup_dsp/frequency/yup_SpectrumAnalyzerState.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
178178
void 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);

modules/yup_dsp/frequency/yup_SpectrumAnalyzerState.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)