Skip to content

daisysp::PitchShifter

More...

#include <pitchshifter.h>

Public Functions

Name
PitchShifter()
~PitchShifter()
void Init(float sr)
float Process(float & in)
void SetTransposition(const float & transpose)
void SetDelSize(uint32_t size)
void SetFun(float f)

Detailed Description

class daisysp::PitchShifter;

Todo:

  • move hash_xs32 and myrand to [dsp.h] and give appropriate names

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;

Public Functions Documentation

function PitchShifter

inline PitchShifter()

function ~PitchShifter

inline ~PitchShifter()

function Init

inline void Init(
    float sr
)

Initialize pitch shifter


function Process

inline float Process(
    float & in
)

process pitch shifter


function SetTransposition

inline void SetTransposition(
    const float & transpose
)

sets transposition in semitones


function SetDelSize

inline void SetDelSize(
    uint32_t size
)

sets delay size changing the timbre of the pitchshifting


function SetFun

inline void SetFun(
    float f
)

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

---

Updated on 2024-01-03 at 19:38:46 +0000