Skip to content

Class daisysp::PitchShifter

ClassList > daisysp > PitchShifter

More...

  • #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

inline void daisysp::PitchShifter::Init (
    float sr
) 

Initialize pitch shifter


function PitchShifter

inline daisysp::PitchShifter::PitchShifter () 

function Process

inline float daisysp::PitchShifter::Process (
    float & in
) 

process pitch shifter


function SetDelSize

inline void daisysp::PitchShifter::SetDelSize (
    uint32_t size
) 

sets delay size changing the timbre of the pitchshifting


function SetFun

inline void daisysp::PitchShifter::SetFun (
    float f
) 

sets an amount of internal random modulation, kind of sounds like tape-flutter


function SetTransposition

inline void daisysp::PitchShifter::SetTransposition (
    const  float & transpose
) 

sets transposition in semitones


function ~PitchShifter

inline daisysp::PitchShifter::~PitchShifter () 


The documentation for this class was generated from the following file external-docs/DaisySP/Source/Effects/pitchshifter.h