Skip to content

Commit

Permalink
Begin FFT Decomposition
Browse files Browse the repository at this point in the history
  • Loading branch information
leonp-s committed Jan 17, 2024
1 parent 55a9b51 commit be1de98
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zones_convolver/util/FFTDecomposition.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//
// Created by Leon Paterson-Stephens on 17/01/2024.
//

#include "FFTDecomposition.h"
25 changes: 25 additions & 0 deletions zones_convolver/util/FFTDecomposition.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#include <juce_dsp/juce_dsp.h>

namespace FFTDecomposition
{
inline void ForwardDecompositionRadix2 (std::complex<float> * data,

Check failure on line 5 in zones_convolver/util/FFTDecomposition.h

View workflow job for this annotation

GitHub Actions / build_and_test

redefinition of ‘void FFTDecomposition::ForwardDecompositionRadix2(std::complex<float>*, std::size_t, std::size_t, std::size_t)’
std::size_t num_points,
std::size_t num_steps,
std::size_t current_step)
{
jassert (num_points > 0 && juce::isPowerOfTwo (num_points));
jassert (num_steps > 0 && num_steps <= num_points && juce::isPowerOfTwo (num_steps));
jassert (current_step < num_steps);

auto half_num_points = num_points / 2;
for (auto point_index = 0u; point_index < half_num_points - 1u; ++point_index)
{
auto a_n = data [point_index] + data [half_num_points];
auto b_n = data [point_index] - data [half_num_points];
}
}

inline void InverseDecompositionRadix2 ()

Check failure on line 22 in zones_convolver/util/FFTDecomposition.h

View workflow job for this annotation

GitHub Actions / build_and_test

redefinition of ‘void FFTDecomposition::InverseDecompositionRadix2()’
{
}
}
1 change: 1 addition & 0 deletions zones_convolver/zones_convolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

#include "util/CircularBuffer.cpp"
#include "util/ComplexBuffer.cpp"
#include "util/FFTDecomposition.cpp"
#include "util/FrequencyDelayLine.cpp"
#include "util/SplitBlock.cpp"
1 change: 1 addition & 0 deletions zones_convolver/zones_convolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ END_JUCE_MODULE_DECLARATION

#include "util/CircularBuffer.h"
#include "util/ComplexBuffer.h"
#include "util/FFTDecomposition.h"
#include "util/FrequencyDelayLine.h"
#include "util/SplitBlock.h"

0 comments on commit be1de98

Please sign in to comment.