Sound Design Toolkit 075 Physically informed sound synthesis for everyday sounds

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

SDTGases.h
Go to the documentation of this file.
1
23 #ifndef SDT_GASES_H
24 #define SDT_GASES_H
25
36 typedef struct SDTWindFlow SDTWindFlow;
37
40 extern SDTWindFlow *SDTWindFlow_new();
41
44 extern void SDTWindFlow_free(SDTWindFlow *x);
45
49 extern void SDTWindFlow_setFilters(SDTWindFlow *x);
50
54 void SDTWindFlow_setWindSpeed(SDTWindFlow *x, double f);
55
59 extern double SDTWindFlow_dsp(SDTWindFlow *x);
60
80 typedef struct SDTWindCavity SDTWindCavity;
81
85 extern SDTWindCavity *SDTWindCavity_new(int maxDelay);
86
89 extern void SDTWindCavity_free(SDTWindCavity *x);
90
93 extern void SDTWindCavity_setLength(SDTWindCavity *x, double f);
94
97 extern void SDTWindCavity_setDiameter(SDTWindCavity *x, double f);
98
101 extern void SDTWindCavity_setWindSpeed(SDTWindCavity *x, double f);
102
106 extern double SDTWindCavity_dsp(SDTWindCavity *x);
107
120 typedef struct SDTWindKarman SDTWindKarman;
121
124 extern SDTWindKarman *SDTWindKarman_new();
125
128 extern void SDTWindKarman_free(SDTWindKarman *x);
129
132 extern void SDTWindKarman_setDiameter(SDTWindKarman *x, double f);
133
136 extern void SDTWindKarman_setWindSpeed(SDTWindKarman *x, double f);
137
141 extern double SDTWindKarman_dsp(SDTWindKarman *x);
142
152 typedef struct SDTExplosion SDTExplosion;
153
158 extern SDTExplosion *SDTExplosion_new(long maxScatter, long maxDelay);
159
162 extern void SDTExplosion_free(SDTExplosion *x);
163
166 extern void SDTExplosion_setBlastTime(SDTExplosion *x, double f);
167
170 extern void SDTExplosion_setScatterTime(SDTExplosion *x, double f);
171
174 extern void SDTExplosion_setDispersion(SDTExplosion *x, double f);
175
178 extern void SDTExplosion_setDistance(SDTExplosion *x, double f);
179
182 extern void SDTExplosion_setWaveSpeed(SDTExplosion *x, double f);
183
186 extern void SDTExplosion_setWindSpeed(SDTExplosion *x, double f);
187
190 extern void SDTExplosion_update(SDTExplosion *x);
191
195 extern void SDTExplosion_dsp(SDTExplosion *x, double *outs);
196
199 #endif
200
SDTWindFlow_setWindSpeed
void SDTWindFlow_setWindSpeed(SDTWindFlow *x, double f)
Sets the wind speed.
SDTExplosion_setWaveSpeed
void SDTExplosion_setWaveSpeed(SDTExplosion *x, double f)
Sets the propagation velocity of the shockwave.
SDTExplosion_setDistance
void SDTExplosion_setDistance(SDTExplosion *x, double f)
Sets the distance of the listener from the explosion.
SDTWindCavity_setLength
void SDTWindCavity_setLength(SDTWindCavity *x, double f)
Sets the lenght of the cavity.
SDTExplosion_update
void SDTExplosion_update(SDTExplosion *x)
Updates the internal state of the object. Please call this function after having reset one or more sy...
SDTWindKarman
struct SDTWindKarman SDTWindKarman
Opaque data structure for a thin obstacle object.
Definition: SDTGases.h:120
SDTWindFlow_new
SDTWindFlow * SDTWindFlow_new()
Object constructor.
SDTWindFlow_dsp
double SDTWindFlow_dsp(SDTWindFlow *x)
Signal processing routine. Call this function at sample rate to synthesize a wind turbulence sound...
SDTWindKarman_free
void SDTWindKarman_free(SDTWindKarman *x)
Object destructor.
SDTWindCavity_free
void SDTWindCavity_free(SDTWindCavity *x)
Object destructor.
SDTExplosion_new
SDTExplosion * SDTExplosion_new(long maxScatter, long maxDelay)
Object constructor.
SDTWindFlow_setFilters
void SDTWindFlow_setFilters(SDTWindFlow *x)
Update filter coefficients. Should be always called after setting the sampling rate with SDT_setSampl...
SDTExplosion
struct SDTExplosion SDTExplosion
Opaque data structure for an explosion object.
Definition: SDTGases.h:152
SDTWindCavity_setDiameter
void SDTWindCavity_setDiameter(SDTWindCavity *x, double f)
Sets the diameter of the cavity.
SDTWindCavity_new
SDTWindCavity * SDTWindCavity_new(int maxDelay)
Object constructor.
SDTWindKarman_setDiameter
void SDTWindKarman_setDiameter(SDTWindKarman *x, double f)
Sets the diameter of the object.
SDTWindFlow
struct SDTWindFlow SDTWindFlow
Opaque data structure for a solid obstacle object.
Definition: SDTGases.h:36
SDTWindCavity
struct SDTWindCavity SDTWindCavity
Opaque data structure for a hollow cavity object.
Definition: SDTGases.h:80
SDTExplosion_dsp
void SDTExplosion_dsp(SDTExplosion *x, double *outs)
Signal processing routine. Call this function at sample rate to synthesize an explosion sound...
SDTWindCavity_dsp
double SDTWindCavity_dsp(SDTWindCavity *x)
Signal processing routine. Call this function at sample rate to synthesize wind through a cavity...
SDTExplosion_setDispersion
void SDTExplosion_setDispersion(SDTExplosion *x, double f)
Sets the balance between initial spike and successive scattering.
SDTWindCavity_setWindSpeed
void SDTWindCavity_setWindSpeed(SDTWindCavity *x, double f)
Sets the wind speed.
SDTWindKarman_new
SDTWindKarman * SDTWindKarman_new()
Object constructor.
SDTExplosion_setBlastTime
void SDTExplosion_setBlastTime(SDTExplosion *x, double f)
Sets the duration of the initial spike.
SDTWindFlow_free
void SDTWindFlow_free(SDTWindFlow *x)
Object destructor.
SDTExplosion_setScatterTime
void SDTExplosion_setScatterTime(SDTExplosion *x, double f)
Sets the duration of the scattering.
SDTWindKarman_setWindSpeed
void SDTWindKarman_setWindSpeed(SDTWindKarman *x, double f)
Sets the wind speed.
SDTExplosion_setWindSpeed
void SDTExplosion_setWindSpeed(SDTExplosion *x, double f)
Sets the propagation velocity of the blast wind.
SDTWindKarman_dsp
double SDTWindKarman_dsp(SDTWindKarman *x)
Signal processing routine. Call this function at sample rate to synthesize wind blowing against a thi...
SDTExplosion_free
void SDTExplosion_free(SDTExplosion *x)
Object destructor.