Class daisysp::PitchShifter¶
ClassList > daisysp > PitchShifter
#include <pitchshifter.h>
Public Functions¶
Type | Name |
---|---|
void | Init (float sr) |
PitchShifter () |
|
float | Process (float & in) |
void | SetDelSize (uint32_t size) |
void | SetFun (float f) |
void | SetTransposition (const float & transpose) |
~PitchShifter () |
Detailed Description¶
time-domain pitchshifter
Author: shensley
Based on "Pitch Shifting" from ucsd.edu
t = 1 - ((s *f) / R)
where: s is the size of the delay f is the frequency of the lfo r is the sample_rate
solving for t = 12.0 f = (12 - 1) * 48000 / SHIFT_BUFFER_SIZE;
Todo
- move hash_xs32 and myrand to dsp.h and give appropriate names
Public Functions Documentation¶
function Init¶
Initialize pitch shifter
function PitchShifter¶
function Process¶
process pitch shifter
function SetDelSize¶
sets delay size changing the timbre of the pitchshifting
function SetFun¶
sets an amount of internal random modulation, kind of sounds like tape-flutter
function SetTransposition¶
sets transposition in semitones
function ~PitchShifter¶
The documentation for this class was generated from the following file external-docs/DaisySP/Source/Effects/pitchshifter.h