Sound Design Toolkit  075
Physically informed sound synthesis for everyday sounds
SDTEffects.h
1 
6 #ifndef SDT_EFFECTS_H
7 #define SDT_EFFECTS_H
8 
16 typedef struct SDTReverb SDTReverb;
17 
21 extern SDTReverb *SDTReverb_new(long maxDelay);
22 
25 extern void SDTReverb_free(SDTReverb *x);
26 
29 extern void SDTReverb_setXSize(SDTReverb *x, double f);
30 
33 extern void SDTReverb_setYSize(SDTReverb *x, double f);
34 
37 extern void SDTReverb_setZSize(SDTReverb *x, double f);
38 
42 extern void SDTReverb_setRandomness(SDTReverb *x, double f);
43 
46 extern void SDTReverb_setTime(SDTReverb *x, double f);
47 
50 extern void SDTReverb_setTime1k(SDTReverb *x, double f);
51 
54 extern void SDTReverb_update(SDTReverb *x);
55 
60 extern double SDTReverb_dsp(SDTReverb *x, double in);
61 
71 
75 extern SDTPitchShift *SDTPitchShift_new(long size);
76 
79 extern void SDTPitchShift_free(SDTPitchShift *x);
80 
83 extern void SDTPitchShift_setRatio(SDTPitchShift *x, double f);
84 
89 extern double SDTPitchShift_dsp(SDTPitchShift *x, double in);
90 
93 #endif
94 
void SDTReverb_setZSize(SDTReverb *x, double f)
Sets the room depth.
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:16
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(long size)
Object constructor.
struct SDTPitchShift SDTPitchShift
Opaque data structure for a pitch shifter object.
Definition: SDTEffects.h:70
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.