Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 5 of 5

Thread: range of the frequency control input in AudioFilterStateVariable

  1. #1
    Junior Member
    Join Date
    May 2020
    Posts
    9

    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.

    Name:  imagen.png
Views: 42
Size:  2.9 KB

  2. #2
    Senior Member manicksan's Avatar
    Join Date
    Jun 2020
    Location
    Sweden
    Posts
    221
    Line 90 in
    https://github.com/PaulStoffregen/Au...r_variable.cpp
    Is the function handling when the freq input is used.

  3. #3
    Junior Member
    Join Date
    May 2020
    Posts
    9
    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)

  4. #4
    Senior Member manicksan's Avatar
    Join Date
    Jun 2020
    Location
    Sweden
    Posts
    221
    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

  5. #5
    Junior Member
    Join Date
    May 2020
    Posts
    9
    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
  •