HISE Logo Forum
    • Categories
    • Register
    • Login

    HISE Filter Display Inconsistencies

    Scheduled Pinned Locked Moved General Questions
    31 Posts 9 Posters 2.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Christoph HartC
      Christoph Hart @ustk
      last edited by

      @ustk I'm currently toying around with a new way of handling this - basically it keeps the old behaviour of approximating the graph with IIR coefficients for all the two pole filter types, but you can override it with a custom function that can calculate any filter response.

      // Return the magnitude (or phase) value for the given frequency
      double getPlotValue(bool getMagnitude, double normedXAxis)
      {
          return someValue;
      }
      

      If the filter type overrides that function it will prefer this for calculating the plot. Now with my limited filter knowledge I figured out how to write the transfer function for the one pole filter and the result is promising:

      81a0fc33-c9ac-4d0f-91cb-3ebe8b3acbec-image.png

      but to figure out the transfer function for the other filter types (ladder, moog, etc) would require me to actually understand this paper lol...

      A LindonL Dan KorneffD 3 Replies Last reply Reply Quote 1
      • A
        aaronventure @Christoph Hart
        last edited by

        @Christoph-Hart what does chatgpt say?

        Christoph HartC 1 Reply Last reply Reply Quote 0
        • Christoph HartC
          Christoph Hart @aaronventure
          last edited by

          @aaronventure tried it already got only gibberish…

          Christoph HartC 1 Reply Last reply Reply Quote 0
          • Christoph HartC
            Christoph Hart @Christoph Hart
            last edited by

            @Christoph-Hart I got it working without the Q for the ladder filter but now I‘m stuck.

            A 1 Reply Last reply Reply Quote 0
            • A
              aaronventure @Christoph Hart
              last edited by

              @Christoph-Hart sorry, what is normed x axis? You're passing in the frequency and then you're taking the return somewhere down the line and doing the log scaling?

              ustkU 1 Reply Last reply Reply Quote 0
              • ustkU
                ustk @aaronventure
                last edited by ustk

                @aaronventure I think normedXAxis means a 0-1 linear value for freq (log), to be confirmed...

                @Christoph-Hart Zavalishin's VA paper, aka THE paper...
                I got a grasp on VA filters from some DSP popularising books. Now, to understand the original paper is a whole different story 😬

                Can't help pressing F5 in the forum...

                1 Reply Last reply Reply Quote 0
                • LindonL
                  Lindon @Christoph Hart
                  last edited by

                  @Christoph-Hart said in HISE Filter Display Inconsistencies:

                  but to figure out the transfer function for the other filter types (ladder, moog, etc) would require me to actually understand this paper lol...

                  Yeah that things a nightmare _ i've tried a bunch of times, and struggle to get past the first section....

                  HISE Development for hire.
                  www.channelrobot.com

                  Christoph HartC 1 Reply Last reply Reply Quote 1
                  • Christoph HartC
                    Christoph Hart @Lindon
                    last edited by

                    Alright, I've pushed the new filter graph API and also added support for creating custom filter curves using a SNEX node! You can now create your custom filters and then add a function to your SNEX class

                    double getPlotValue(int getMagnitude, double fNorm)
                    { 
                        return 1.0f; // calculate the filter response here
                    }
                    

                    I've added a example to the snippet browser that implements the one pole filter including the filter graph creation entirely in SNEX.

                    Link Preview Image
                    HISE | Docs

                    favicon

                    (docs.hise.dev)

                    Let me know if you hit any issues. Maybe now that we've levelled the playing field and anybody can create those filter graphs, we can tackle the ladder filter response together...

                    A 1 Reply Last reply Reply Quote 6
                    • A
                      aaronventure @Christoph Hart
                      last edited by

                      @Christoph-Hart said in HISE Filter Display Inconsistencies:

                      we can tackle the ladder filter response together...

                      Maybe you can find some clues here?

                      Link Preview Image
                      faustlibraries/filters.lib at master · grame-cncm/faustlibraries

                      The Faust libraries. Contribute to grame-cncm/faustlibraries development by creating an account on GitHub.

                      favicon

                      GitHub (github.com)

                      The ladder filter (as well as the filters.ladder node) currently in HISE is somewhat busted:

                      • Frequency parameter only does something until 7k, past that it does nothing
                      • Q only works from 0.6 to 8.0
                      1 Reply Last reply Reply Quote 0
                      • Dan KorneffD
                        Dan Korneff @Christoph Hart
                        last edited by

                        @Christoph-Hart I could probably help with this. I'm calculating transfer functions all day

                        Dan Korneff - Producer / Mixer / Audio Nerd

                        1 Reply Last reply Reply Quote 2
                        • ustkU
                          ustk @aaronventure
                          last edited by

                          @aaronventure May I ask if you're building Hise in a specific manner to get it to work as an FX plugin, essentially with PluginDoctor?

                          This is something I did a lot in the past but now the plugin is not recognised (AU & VST3). Tried in Live and PluginDoctor. I'm out of solutions...

                          Can't help pressing F5 in the forum...

                          A 1 Reply Last reply Reply Quote 0
                          • A
                            aaronventure @ustk
                            last edited by

                            @ustk

                            HISE_BACKEND_AS_FX=1
                            

                            But you have to load Metaplugin in the doctor, and in there you should load the VST3i of HISE built with this flag, as Metaplugin will let you plug audio in into a plugin like a proper host.

                            ustkU 1 Reply Last reply Reply Quote 1
                            • ustkU
                              ustk @aaronventure
                              last edited by ustk

                              @aaronventure

                              Mmmm... I have this flag but it still doesn't work...

                              So you mean [PD] <= [MetaPlug as FX] <= [Hise as Instrument] ?

                              EDDIT: it seems to work, I had an error message but Hise seems to launch

                              Can't help pressing F5 in the forum...

                              1 Reply Last reply Reply Quote 0
                              • A aaronventure referenced this topic on
                              • First post
                                Last post

                              51

                              Online

                              1.7k

                              Users

                              11.7k

                              Topics

                              101.9k

                              Posts