Sound Design Toolkit  075
Physically informed sound synthesis for everyday sounds

Typedefs

typedef struct SDTPitchShift SDTPitchShift
 Opaque data structure for a pitch shifter object.
 

Functions

SDTPitchShiftSDTPitchShift_new (long size)
 Object constructor. More...
 
void SDTPitchShift_free (SDTPitchShift *x)
 Object destructor. More...
 
void SDTPitchShift_setRatio (SDTPitchShift *x, double f)
 Sets the pitch shifting ratio. More...
 
double SDTPitchShift_dsp (SDTPitchShift *x, double in)
 Signal processing routine. Call this function at sample rate to compute the pitch shifted signal. More...
 

Detailed Description

Time-domain pitch shifter, useful to simulate doppler effect or other applications requiring pitch shifting.

Function Documentation

double SDTPitchShift_dsp ( SDTPitchShift x,
double  in 
)

Signal processing routine. Call this function at sample rate to compute the pitch shifted signal.

Parameters
[in]inInput sample
Returns
Output sample
void SDTPitchShift_free ( SDTPitchShift x)

Object destructor.

Parameters
[in]xPointer to the instance to destroy
SDTPitchShift* SDTPitchShift_new ( long  size)

Object constructor.

Parameters
[in]sizeInternal buffer size, in samples
Returns
Pointer to the new instance
void SDTPitchShift_setRatio ( SDTPitchShift x,
double  f 
)

Sets the pitch shifting ratio.

Parameters
[in]fNew pitch / original pitch ratio