pitchshifterAA

This is a LP filter to be used with the pitchshifter2 module. Feed it the same controls and it tracks the up/down sampling of the audio to reduce alliasing
Author: Remco van der Most
License: BSD
Github: sss/fx/pitchshifterAA.axo

Inlets

frac32buffer input

frac32 semitone

frac32 harmshift

frac32 ratioshift

Outlets

frac32buffer output

Parameters

frac32.s.map.pitch freq

Declaration
int32_t val;
Init
val = 0;
Control Rate
int32_t f;
MTOF(param_freq + inlet_semitone, f);
Audio Rate
// val =
// ___SMMLA((inlet_in-val)<<1,___SMMUL((f+___SMMUL(f<<7,inlet_harmshift<<2))<<6,inlet_ratioshift<<3),val);

int32_t g = (f + ___SMMUL(f << 5, inlet_harmshift << 2));
int32_t h = ___SMMUL(g << 4, inlet_ratioshift << 4);
int32_t i = ((h > 0) ? h : -h);
val = ___SMMLA((inlet_in - val) << 1, i, val);
outlet_out = val;

Privacy

© 2024 Zrna Research