sfFDN
Loading...
Searching...
No Matches
Delay Utilities

A collection of functions to generate delay lengths for feedback delay networks. More...

Functions

std::vector< float > sfFDN::GetDelayLengths (uint32_t delay_count, float min_delay, float max_delay, DelayLengthType type, uint32_t seed=0)
 Generates a list of delay lengths based on the specified parameters.
 
std::vector< float > sfFDN::GetDelayLengthsFromMean (uint32_t delay_count, float mean_delay_ms, float sigma, uint32_t sample_rate)
 Generates a list of delay lengths logarithmically spaced around a mean value.
 

Detailed Description

A collection of functions to generate delay lengths for feedback delay networks.

Function Documentation

◆ GetDelayLengths()

std::vector< float > sfFDN::GetDelayLengths ( uint32_t delay_count,
float min_delay,
float max_delay,
DelayLengthType type,
uint32_t seed = 0 )

Generates a list of delay lengths based on the specified parameters.

Parameters
delay_countthe number of delay lengths to generate
min_delaythe minimum delay length
max_delaythe maximum delay length
typethe type of delay length distribution to use
seedthe random seed to use for generating delays
Returns
a vector containing the generated delay lengths
Note
While this method uses min_delay and max_delay, it does not guarantee that the delays will be within this range when using DelayLengthType::SteamAudio.

◆ GetDelayLengthsFromMean()

std::vector< float > sfFDN::GetDelayLengthsFromMean ( uint32_t delay_count,
float mean_delay_ms,
float sigma,
uint32_t sample_rate )

Generates a list of delay lengths logarithmically spaced around a mean value.

Parameters
delay_countthe number of delay lengths to generate
mean_delay_msthe mean delay length in milliseconds
sigmathe standard deviation for the distribution
sample_ratethe sample rate in Hz
Returns
std::vector<uint32_t> a vector containing the generated delay lengths