Sound Design Toolkit  078
Physically informed sound synthesis for everyday sounds
SDTEffects.h
1 
6 #ifndef SDT_EFFECTS_H
7 #define SDT_EFFECTS_H
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
20 typedef struct SDTReverb SDTReverb;
21 
25 extern SDTReverb *SDTReverb_new(long maxDelay);
26 
29 extern void SDTReverb_free(SDTReverb *x);
30 
33 extern void SDTReverb_setXSize(SDTReverb *x, double f);
34 
37 extern void SDTReverb_setYSize(SDTReverb *x, double f);
38 
41 extern void SDTReverb_setZSize(SDTReverb *x, double f);
42 
46 extern void SDTReverb_setRandomness(SDTReverb *x, double f);
47 
50 extern void SDTReverb_setTime(SDTReverb *x, double f);
51 
54 extern void SDTReverb_setTime1k(SDTReverb *x, double f);
55 
58 extern void SDTReverb_update(SDTReverb *x);
59 
64 extern double SDTReverb_dsp(SDTReverb *x, double in);
65 
75 
80 extern SDTPitchShift *SDTPitchShift_new(int size, int oversample);
81 
84 extern void SDTPitchShift_free(SDTPitchShift *x);
85 
88 extern void SDTPitchShift_setRatio(SDTPitchShift *x, double f);
89 
95 extern void SDTPitchShift_setOverlap(SDTPitchShift *x, double f);
96 
101 extern double SDTPitchShift_dsp(SDTPitchShift *x, double in);
102 
105 #ifdef __cplusplus
106 };
107 #endif
108 
109 #endif
110 
void SDTReverb_setZSize(SDTReverb *x, double f)
Sets the room depth.
void SDTPitchShift_setOverlap(SDTPitchShift *x, double f)
Sets the analysis window overlapping ratio. Accepted values go from 0.0 to 1.0, with 0...
void SDTPitchShift_setRatio(SDTPitchShift *x, double f)
Sets the pitch shifting ratio.
struct SDTReverb SDTReverb
Opaque data structure for a reverberator object.
Definition: SDTEffects.h:20
void SDTReverb_setYSize(SDTReverb *x, double f)
Sets the room height.
void SDTReverb_setXSize(SDTReverb *x, double f)
Sets the room width.
SDTPitchShift * SDTPitchShift_new(int size, int oversample)
Object constructor.
struct SDTPitchShift SDTPitchShift
Opaque data structure for a pitch shifter object.
Definition: SDTEffects.h:74
double SDTReverb_dsp(SDTReverb *x, double in)
Signal processing routine. Call this function at sample rate to compute the reverberated signal...
SDTReverb * SDTReverb_new(long maxDelay)
Object constructor.
void SDTReverb_setTime(SDTReverb *x, double f)
Sets the global, frequency-independent reverberation time.
void SDTReverb_setTime1k(SDTReverb *x, double f)
Sets the reverberation time at 1kHz.
void SDTReverb_setRandomness(SDTReverb *x, double f)
Sets how randomly distributed are the resonant modes. This parameter is directly proportional to the ...
double SDTPitchShift_dsp(SDTPitchShift *x, double in)
Signal processing routine. Call this function at sample rate to compute the pitch shifted signal...
void SDTPitchShift_free(SDTPitchShift *x)
Object destructor.
void SDTReverb_free(SDTReverb *x)
Object destructor.
void SDTReverb_update(SDTReverb *x)
Updates the internal filters. Call this function after every sample rate change.