Forum Rule: Always post complete source code & details to reproduce any issue!
-
range of the frequency control input in AudioFilterStateVariable
I Would like to know what is the range of the frequency control input in the AudioFilterStateVariable?
and where is the filter control variable in the filter_variable.h/cpp code, since I don't see any input.
-
Senior Member
Line 90 in
https://github.com/PaulStoffregen/Au...r_variable.cpp
Is the function handling when the freq input is used.
-
I do not see it clearly,
Well, when we put an envelope in that input the range varies from 0 to 1 (float), but I don't see in line 90 the transform from the range 0 to 1 to an integer int16_t.
void AudioFilterStateVariable::update_variable(const int16_t *in, const int16_t *ctl, int16_t *lp, int16_t *bp, int16_t *hp)
-
Senior Member
Actually of what I understand the float value is never used between audio objects, float is not a good way of storing audio values because of its structure.
The floats are only used to make it easier for a user perspective view, when controlling gains an other percentage stuff.
That function is called from the update function line 205
-
perfect, thanks, then use the range of an integer [0..32767]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules