Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::signal::SpectralBandResolutionT< SampleType > Struct Template Reference

Control-side report of how discrete FFT bin centers represent an authored viewport. More...

#include <spectral_band_mask.hpp>

Public Member Functions

bool fully_represented () const noexcept

Public Attributes

int fft_size = 0
int num_bins = 0
SampleType sample_rate = SampleType{0}
SampleType bin_width_hz = SampleType{0}
SampleType effective_min_hz = SampleType{0}
SampleType effective_max_hz = SampleType{0}
std::uint32_t active_bands = 0
std::uint32_t represented_bands = 0
std::uint32_t viewport_bins = 0
std::array< std::uint32_t, kSpectralBandMaskMaximumBands > owned_bins {}

Detailed Description

template<typename SampleType>
struct pulp::signal::SpectralBandResolutionT< SampleType >

Control-side report of how discrete FFT bin centers represent an authored viewport.

owned_bins counts only bins inside the viewport; exterior bins assigned through extend_edge_band do not inflate the first or last band. A zero count means that changing the corresponding hard-boundary band cannot directly select a distinct bin at this FFT geometry.

Member Function Documentation

◆ fully_represented()

template<typename SampleType>
bool pulp::signal::SpectralBandResolutionT< SampleType >::fully_represented ( ) const
inlinenodiscardnoexcept

Member Data Documentation

◆ active_bands

template<typename SampleType>
std::uint32_t pulp::signal::SpectralBandResolutionT< SampleType >::active_bands = 0

◆ bin_width_hz

template<typename SampleType>
SampleType pulp::signal::SpectralBandResolutionT< SampleType >::bin_width_hz = SampleType{0}

◆ effective_max_hz

template<typename SampleType>
SampleType pulp::signal::SpectralBandResolutionT< SampleType >::effective_max_hz = SampleType{0}

◆ effective_min_hz

template<typename SampleType>
SampleType pulp::signal::SpectralBandResolutionT< SampleType >::effective_min_hz = SampleType{0}

◆ fft_size

template<typename SampleType>
int pulp::signal::SpectralBandResolutionT< SampleType >::fft_size = 0

◆ num_bins

template<typename SampleType>
int pulp::signal::SpectralBandResolutionT< SampleType >::num_bins = 0

◆ owned_bins

template<typename SampleType>
std::array<std::uint32_t, kSpectralBandMaskMaximumBands> pulp::signal::SpectralBandResolutionT< SampleType >::owned_bins {}

◆ represented_bands

template<typename SampleType>
std::uint32_t pulp::signal::SpectralBandResolutionT< SampleType >::represented_bands = 0

◆ sample_rate

template<typename SampleType>
SampleType pulp::signal::SpectralBandResolutionT< SampleType >::sample_rate = SampleType{0}

◆ viewport_bins

template<typename SampleType>
std::uint32_t pulp::signal::SpectralBandResolutionT< SampleType >::viewport_bins = 0

The documentation for this struct was generated from the following file: