One of the possible sources of turbulence is the impact on a large solid surface. In this case, turbulence is generated due to the impact of the air molecules on the surface and to their random change of direction caused by the irregularities of the surface itself. The resulting sound is modeled through a bandpass-filtered white noise generator. The center frequency and bandwidth of the filter are empirically set to fixed values, while the resulting output is modulated in amplitude according to the velocity of the air flow.
Signal processing routine. Call this function at sample rate to synthesize a wind turbulence sound.
- Returns
- Computed audio sample
Object destructor.
- Parameters
-
| [in] | x | Pointer to the instance to destroy |
Object constructor.
- Returns
- Pointer to the new instance
Update filter coefficients. Should be always called after setting the sampling rate with SDT_setSampleRate().
- Parameters
-
| [in] | x | Pointer to a SDTWindFlow instance |
| void SDTWindFlow_setWindSpeed |
( |
SDTWindFlow * |
x, |
|
|
double |
f |
|
) |
| |
Sets the wind speed.
- Parameters
-
| [in] | x | Pointer to a SDTWindFlow instance |
| [in] | f | Wind speed [0,1] |