MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Yantra::SpectralTransformerConfig Struct Reference

Settings of SpectralTransformer, stored whole in the operation's facets. More...

#include <SpectralTransformer.hpp>

Inheritance diagram for MayaFlux::Yantra::SpectralTransformerConfig:
Collaboration diagram for MayaFlux::Yantra::SpectralTransformerConfig:

Public Attributes

double enhancement_factor { 2.0 }
 HARMONIC_ENHANCE: gain at Nyquist relative to DC.
double high_freq { 20000.0 }
 SPECTRAL_FILTER: upper edge of the passband, in Hz.
uint32_t hop_size { 512 }
 STFT hop length in samples.
double low_freq { 20.0 }
 SPECTRAL_FILTER: lower edge of the passband, in Hz.
Reflect::EnumByte< SpectralOperation > operation { SpectralOperation::FREQUENCY_SHIFT }
 Spectral operation to apply.
double pitch_ratio { 1.0 }
 PITCH_SHIFT: frequency ratio, 2.0 is one octave up.
double sample_rate { 48000.0 }
 Sample rate of the input, in Hz, used to map bins to frequencies.
double shift_hz { 0.0 }
 FREQUENCY_SHIFT: shift applied to the passband, in Hz.
double threshold { -40.0 }
 SPECTRAL_GATE: magnitude threshold in dB.
uint32_t window_size { 1024 }
 STFT window length in samples.
Public Attributes inherited from MayaFlux::Yantra::TransformerConfig
double intensity { 1.0 }
 Amount of transformation, 0.0 to 2.0.
TransformationQuality quality { TransformationQuality::STANDARD }
 Requested quality level.
TransformationScope scope { TransformationScope::FULL_DATA }
 Portion of the data processed.
TransformationStrategy strategy { TransformationStrategy::BUFFERED }
 How the input is handled.

Additional Inherited Members

Public Member Functions inherited from MayaFlux::Yantra::OperationConfig
template<typename Op>
void apply_to (Op &operation) const
 Apply retained concrete settings to an operation through its parent contract.
template<typename T>
const T * get () const
 The struct of this type, or nullptr when absent.
 OperationConfig ()=default
template<typename Config>
requires (!std::same_as<std::remove_cvref_t<Config>, OperationConfig> && std::derived_from<std::remove_cvref_t<Config>, OperationConfig>)
 OperationConfig (Config &&config)
 Retain a concrete config whole when placed in a parent-config collection.
 OperationConfig (const OperationConfig &)=default
 OperationConfig (OperationConfig &&) noexcept=default
OperationConfig & operator= (const OperationConfig &)=default
OperationConfig & operator= (OperationConfig &&) noexcept=default
template<typename T>
void set (T value)
 Stores a struct under its type identity.

Detailed Description

Settings of SpectralTransformer, stored whole in the operation's facets.

Definition at line 27 of file SpectralTransformer.hpp.


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