DaisySP
Loading...
Searching...
No Matches
Public Member Functions | List of all members
daisysp::PitchShifter Class Reference

#include <pitchshifter.h>

Public Member Functions

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

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

Member Function Documentation

◆ Init()

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

Initialize pitch shifter

◆ Process()

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

process pitch shifter

◆ SetDelSize()

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

sets delay size changing the timbre of the pitchshifting

◆ SetFun()

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

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

◆ SetTransposition()

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

sets transposition in semitones


The documentation for this class was generated from the following file: