Sound Design Toolkit  075
Physically informed sound synthesis for everyday sounds
SDTLiquids.h File Reference

Go to the source code of this file.

Typedefs

typedef struct SDTBubble SDTBubble
 Opaque data structure representing a bubble object.
 
typedef struct SDTFluidFlow SDTFluidFlow
 Opaque data structure representing a fluid flow object.
 

Functions

SDTBubbleSDTBubble_new ()
 Object constructor. More...
 
void SDTBubble_free (SDTBubble *x)
 Object destructor. More...
 
void SDTBubble_setRadius (SDTBubble *x, double f)
 Sets the bubble radius. More...
 
void SDTBubble_setDepth (SDTBubble *x, double f)
 Sets the bubble depth. More...
 
void SDTBubble_setRiseFactor (SDTBubble *x, double f)
 Sets the amount of blooping. More...
 
void SDTBubble_update (SDTBubble *x)
 Triggers a new bubble.
 
void SDTBubble_normAmp (SDTBubble *x)
 Sets bubble amplitude to the maximum instead of computing it from radius and depth.
 
double SDTBubble_dsp (SDTBubble *x)
 Signal processing routine. Call this function at sample rate to obtain a bubble sound. More...
 
SDTFluidFlowSDTFluidFlow_new (int nBubbles)
 Object constructor. More...
 
void SDTFluidFlow_free (SDTFluidFlow *x)
 Object destructor. More...
 
void SDTFluidFlow_setMinRadius (SDTFluidFlow *x, double f)
 Sets the minimum radius for the bubble population. More...
 
void SDTFluidFlow_setMaxRadius (SDTFluidFlow *x, double f)
 Sets the maximum radius for the bubble population. More...
 
void SDTFluidFlow_setExpRadius (SDTFluidFlow *x, double f)
 Sets the gamma factor for the radius assignment. More...
 
void SDTFluidFlow_setMinDepth (SDTFluidFlow *x, double f)
 Sets the minimum depth value for the bubble population. More...
 
void SDTFluidFlow_setMaxDepth (SDTFluidFlow *x, double f)
 Sets the maximum depth value for the bubble population. More...
 
void SDTFluidFlow_setExpDepth (SDTFluidFlow *x, double f)
 Sets the gamma factor for the depth assignment. More...
 
void SDTFluidFlow_setRiseFactor (SDTFluidFlow *x, double f)
 Sets the amount of blooping for the bubble population. More...
 
void SDTFluidFlow_setRiseCutoff (SDTFluidFlow *x, double f)
 Bubbles deeper than this threshold do not rise in frequency. More...
 
void SDTFluidFlow_setAvgRate (SDTFluidFlow *x, double f)
 Sets the amount of generated bubbles per second. More...
 
double SDTFluidFlow_dsp (SDTFluidFlow *x)
 Signal processing routine. Call this function at sample rate to obtain a liquid sound. More...