HISE Logo Forum
    • Categories
    • Register
    • Login

    NUM_API_FUNCTION_SLOTS

    Scheduled Pinned Locked Moved C++ Development
    12 Posts 4 Posters 432 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.
    • d.healeyD
      d.healey
      last edited by

      @Christoph-Hart I've been adding functions to the Engine class and it seems I've hit this limit. What do I do?

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey
        last edited by

        Could I just increase the limit, or is that a bad idea?

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey
          last edited by

          Bump bump

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

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

            Hmm, the problem is that there are a few performance implications of having a large number of API calls per class, so we can't raise that number indefinitely so at some point we might think about breaking the Engine class down into multiple smaller classes. However this will completely break all existing code, so it's not an option unless we add an automatic migration tool.

            Nevertheless, problem of future chris. Raise it!

            d.healeyD 1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.healey @Christoph Hart
              last edited by

              @Christoph-Hart All of the functions I'm adding are to make the custom settings panel options available via scripting. So maybe a Settings class would be the answer?

              Libre Wave - Freedom respecting instruments and effects
              My Patreon - HISE tutorials
              YouTube Channel - Public HISE tutorials

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

                Yeah, that's better. Do you know how to add an API class?

                d.healeyD 1 Reply Last reply Reply Quote 0
                • d.healeyD
                  d.healey @Christoph Hart
                  last edited by

                  @Christoph-Hart I don't but I don't mind learning, can you point me to the documentation?

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

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

                    Yeah, the documentation :)

                    I've added the setting API class as template, so you can populate it with the stuff you need.

                    Link Preview Image
                    - added Settings API class 路 christophhart/HISE@c61759f

                    The open source framework for sample based instruments - - added Settings API class 路 christophhart/HISE@c61759f

                    favicon

                    GitHub (github.com)

                    Also this commit is now the documentation for how to add a new API class :)

                    d.healeyD 1 Reply Last reply Reply Quote 2
                    • d.healeyD
                      d.healey @Christoph Hart
                      last edited by

                      @Christoph-Hart Excellent, thank you

                      Libre Wave - Freedom respecting instruments and effects
                      My Patreon - HISE tutorials
                      YouTube Channel - Public HISE tutorials

                      1 Reply Last reply Reply Quote 0
                      • d.healeyD
                        d.healey
                        last edited by d.healey

                        I've added a bunch of functions to the new Settings class. These functions make most of the custom settings options accessible from the API and also a few of the MIDI panel functions like toggling filtered channels and input devices. Pull request has been made.

                        I have an older HISE preset that throws a function doesn't exist error when I use any function in the Settings class. It works fine in new HISE presets in the same project. How do I update my older HISE preset to be aware of the new functions?

                        Update: It only happens in the main interface script.

                        Update2: It's triggering JUCE Assertion failure in juce_NamedValueSet.cpp:238

                        Update3: I'm a damn fool! I have a namespace called Settings :p mystery solved.

                        Libre Wave - Freedom respecting instruments and effects
                        My Patreon - HISE tutorials
                        YouTube Channel - Public HISE tutorials

                        LindonL 1 Reply Last reply Reply Quote 1
                        • LindonL
                          Lindon @d.healey
                          last edited by

                          @d-healey said in NUM_API_FUNCTION_SLOTS:

                          Update3: I'm a damn fool! I have a namespace called Settings :p mystery solved.

                          Actually I think you will find I have the "damn fool" slot covered.... :p

                          HISE Development for hire.
                          www.channelrobot.com

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

                            A while ago I've dug for a very long time with an export issue on one of my projects... Then I realized that the name of this project contained the word "system" in it so it was bugging the compiler... Scratched my head for almost a month 馃槅

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

                            1 Reply Last reply Reply Quote 1
                            • First post
                              Last post

                            53

                            Online

                            1.7k

                            Users

                            11.7k

                            Topics

                            101.9k

                            Posts