Input scaling in filter objects


#1

How is the pitch input in filter objects scaled?

I noticed that while the normal range for fractionals is -64/+64, the excursion in cutoff for filter objects is different for filter/vcf (which is 0/+256)
Is this intentional or it will be changed in future versions?


#2

pitch is usually -64/+64 , whereas frequency is usually 0/+64 ... is filter/vcf - 0/256?


#3

Try this patch, you'll see that it takes 4 knobs to reach full range filter scaling.axp (4.0 KB)


#4

yeah, I need to confirm with @johannes, but I think the k-rate code is wrong, and should be

int32_t f;
MTOF(inlet_frequency,f);
f_filter_biquad_A(&fd,inlet_in,outlet_out,f,INT_MAX - (__USAT(inlet_reso,27)<<4));

this appears to given the correct 0-64 range for frequency

its currently (incorrectly i think)

f_filter_biquad_A(&fd,inlet_in,outlet_out,inlet_frequency,INT_MAX - 
  (__USAT(inlet_reso,27)<<4));

#5

I've submitted issue https://github.com/axoloti/axoloti/issues/229 and fixed (PR pending)

@johannes Ive placed in a separate branch (but it will merge to master) , in the unlikely event, you think its not correct, you can just close the PR