|
Sound Design Toolkit
078
Physically informed sound synthesis for everyday sounds
|
Typedefs | |
| typedef struct SDTPitchShift | SDTPitchShift |
| Opaque data structure for a pitch shifter object. | |
| typedef struct SDTPitchShift | SDTPitchShift |
| Opaque data structure for a pitch shifter object. | |
Functions | |
| SDTPitchShift * | SDTPitchShift_new (int size, int oversample) |
| Object constructor. More... | |
| void | SDTPitchShift_free (SDTPitchShift *x) |
| Object destructor. More... | |
| void | SDTPitchShift_setRatio (SDTPitchShift *x, double f) |
| Sets the pitch shifting ratio. More... | |
| void | SDTPitchShift_setOverlap (SDTPitchShift *x, double f) |
| Sets the analysis window overlapping ratio. Accepted values go from 0.0 to 1.0, with 0.0 meaning no overlap and 1.0 meaning total overlap. More... | |
| double | SDTPitchShift_dsp (SDTPitchShift *x, double in) |
| Signal processing routine. Call this function at sample rate to compute the pitch shifted signal. More... | |
Frequency domain pitch shifter, useful to simulate doppler effect or other applications requiring pitch shifting.
| double SDTPitchShift_dsp | ( | SDTPitchShift * | x, |
| double | in | ||
| ) |
Signal processing routine. Call this function at sample rate to compute the pitch shifted signal.
| [in] | in | Input sample |
| void SDTPitchShift_free | ( | SDTPitchShift * | x | ) |
Object destructor.
| [in] | x | Pointer to the instance to destroy |
| SDTPitchShift * SDTPitchShift_new | ( | int | size, |
| int | oversample | ||
| ) |
Object constructor.
| [in] | size | Internal buffer size, in samples |
| [in] | oversample | FFT oversampling rate |
| void SDTPitchShift_setOverlap | ( | SDTPitchShift * | x, |
| double | f | ||
| ) |
Sets the analysis window overlapping ratio. Accepted values go from 0.0 to 1.0, with 0.0 meaning no overlap and 1.0 meaning total overlap.
| [in] | x | Pointer to the instance |
| [in] | f | Overlap ratio [0.0, 1.0] |
| void SDTPitchShift_setRatio | ( | SDTPitchShift * | x, |
| double | f | ||
| ) |
Sets the pitch shifting ratio.
| [in] | f | New pitch / original pitch ratio |