Forum

    • Register
    • Login
    • Search
    • Categories

    NUM_API_FUNCTION_SLOTS

    C++ Development
    4
    12
    164
    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.healey
      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.healey
        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.healey
          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 Hart
            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.healey 1 Reply Last reply Reply Quote 0
            • d.healey
              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 Hart
                Christoph Hart last edited by

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

                d.healey 1 Reply Last reply Reply Quote 0
                • d.healey
                  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 Hart
                    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.

                    https://github.com/christophhart/HISE/commit/c61759fa260dcbda57da56631f5c8d1a18e32416

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

                    d.healey 1 Reply Last reply Reply Quote 2
                    • d.healey
                      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.healey
                        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 😛 mystery solved.

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

                        Lindon 1 Reply Last reply Reply Quote 1
                        • Lindon
                          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 😛 mystery solved.

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

                          HISE Development for hire.
                          www.channelrobot.com

                          1 Reply Last reply Reply Quote 2
                          • ustk
                            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 😆

                            I can't help pressing F5 in the forum...

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

                            5
                            Online

                            1.1k
                            Users

                            7.0k
                            Topics

                            64.7k
                            Posts