Sound Design Toolkit 075 Physically informed sound synthesis for everyday sounds

- Main Page
- Modules
- Data Structures
- Files

Typedefs | Functions
Pitch shift
SDTEffects.h: Digital audio effects

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

## Functions
SDTPitchShift * | SDTPitchShift_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] | in | Input sample

Returns
  Output sample

void SDTPitchShift_free | ( | SDTPitchShift * | x | ) |

Object destructor.

Parameters

  [in] | x | Pointer to the instance to destroy

SDTPitchShift* SDTPitchShift_new | ( | long | size | ) |

Object constructor.

Parameters

  [in] | size | Internal buffer size, in samples

Returns
  Pointer to the new instance

void SDTPitchShift_setRatio | ( | SDTPitchShift * | x,
|  | double | f
| ) |  |

Sets the pitch shifting ratio.

Parameters

  [in] | f | New pitch / original pitch ratio