A collection of functions to generate delay lengths for feedback delay networks.
More...
|
| 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.
|
| |
A collection of functions to generate delay lengths for feedback delay networks.
◆ 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_count | the number of delay lengths to generate |
| min_delay | the minimum delay length |
| max_delay | the maximum delay length |
| type | the type of delay length distribution to use |
| seed | the 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_count | the number of delay lengths to generate |
| mean_delay_ms | the mean delay length in milliseconds |
| sigma | the standard deviation for the distribution |
| sample_rate | the sample rate in Hz |
- Returns
- std::vector<uint32_t> a vector containing the generated delay lengths