Sound Design Toolkit  078
Physically informed sound synthesis for everyday sounds

Typedefs

typedef struct SDTRolling SDTRolling
 Opaque data structure for the rolling object.
 
typedef struct SDTRolling SDTRolling
 Opaque data structure for the rolling object.
 

Functions

SDTRollingSDTRolling_new ()
 Object constructor. More...
 
void SDTRolling_free (SDTRolling *x)
 Object destructor. More...
 
void SDTRolling_setGrain (SDTRolling *x, double f)
 Sets the grain of the surface. This parameter affects the density of the micro-impacts: Lower values result in a bumpier rolling, higher values result in a smoother rolling. More...
 
void SDTRolling_setDepth (SDTRolling *x, double f)
 Sets the average bump depth. This parameter affects the energy of the micro-impacts. More...
 
void SDTRolling_setMass (SDTRolling *x, double f)
 Sets the rolling mass. The mass parameter of the controlled object should be updated accordingly. More...
 
void SDTRolling_setVelocity (SDTRolling *x, double f)
 Sets the rolling velocity. More...
 
double SDTRolling_dsp (SDTRolling *x, double in)
 Signal processing routine. Call this function at sample rate to compute the force acting on the rolling object. More...
 

Detailed Description

Control layer for the impact model, generating rolling sonic textures. The output is a force, which should be applied to an inertial mass hitting a resonator.

Function Documentation

double SDTRolling_dsp ( SDTRolling x,
double  in 
)

Signal processing routine. Call this function at sample rate to compute the force acting on the rolling object.

Parameters
[in]inSurface profile, as an audio signal
Returns
Normal force on the exciter
void SDTRolling_free ( SDTRolling x)

Object destructor.

Parameters
[in]xPointer to the instance to destroy
SDTRolling * SDTRolling_new ( )

Object constructor.

Returns
Pointer to the new instance
void SDTRolling_setDepth ( SDTRolling x,
double  f 
)

Sets the average bump depth. This parameter affects the energy of the micro-impacts.

Parameters
[in]fAverage depth of the surface bumps
void SDTRolling_setGrain ( SDTRolling x,
double  f 
)

Sets the grain of the surface. This parameter affects the density of the micro-impacts: Lower values result in a bumpier rolling, higher values result in a smoother rolling.

Parameters
[in]fSurface grain [0, 1]
void SDTRolling_setMass ( SDTRolling x,
double  f 
)

Sets the rolling mass. The mass parameter of the controlled object should be updated accordingly.

Parameters
[in]fMass of the rolling object, in Kg
void SDTRolling_setVelocity ( SDTRolling x,
double  f 
)

Sets the rolling velocity.

Parameters
[in]fRolling velocity