|
JPL Spatial
Sound spatialization and propagation library
|
#include "JPLSpatial/Core.h"#include "JPLSpatial/Math/Math.h"#include "JPLSpatial/Math/SIMD.h"#include "JPLSpatial/Math/SIMDMath.h"#include <algorithm>#include <array>#include <span>#include <ranges>Go to the source code of this file.
Classes | |
| struct | JPL::SplitFrequencies |
| Split frequencies points for crossover. More... | |
Namespaces | |
| namespace | JPL |
Typedefs | |
| using | JPL::AbsorptionCoeffs = simd |
| using | JPL::FreqBandCenters = simd |
| using | JPL::EnergyBands = simd |
Functions | |
| JPL_INLINE FreqBandCenters | JPL::ComputeBandCenters (const SplitFrequencies &splitFrequenciesHz, float nyquist=22050.0f) |
| template<std::floating_point T, std::size_t N> requires (N != std::dynamic_extent) | |
| JPL_INLINE std::array< T, N+1 > | JPL::ComputeBandCenters (std::span< const T, N > splitFrequenciesHz, T nyquist=T(22050.0)) |
| JPL_INLINE FreqBandCenters | JPL::ComputeBandLowerThirdCenters (const SplitFrequencies &splitFrequenciesHz, float nyquist=22050.0f) |
| JPL_INLINE SplitFrequencies | JPL::SplitFrequenciesFromBandCenters (const FreqBandCenters &bandCenters, float nyquist=22050.0f) |
| JPL_INLINE FreqBandCenters | JPL::ComputeBandLowerThirdCenters (const FreqBandCenters &bandCenters, float nyquist=22050.0f) |
Variables | |
| constexpr SplitFrequencies | JPL::cDefaultFrequencySplits { .F1 = 176.0f, .F2 = 775.0f, .F3 = 3408.0f } |
| At the moment JPL Spatial uses these frequency sptits for sound propagation. | |
| const FreqBandCenters | JPL::cBandCenters = round(ComputeBandCenters(cDefaultFrequencySplits)) |