HISE Logo Forum
    • Categories
    • Register
    • Login

    Need More 'reg' variables !

    Scheduled Pinned Locked Moved Unsolved Scripting
    4 Posts 2 Posters 29 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.
    • ChazroxC
      Chazrox
      last edited by

      Im pushing close to the 32 reg max per script on my interface script. I have some other functions I still need to write that need a few reg flags. I know we can have 32 reg variables per script and that if we use a namespace we can have 32 reg within that namespace. Can I create a namespace block and leave it in my interface script just to get more reg?

      I thought about creating a namespace and moving to external file, but will those reg variables be available globally? Will it be available globally in a namespace like I described above? Just curious if anybody has any advice.

      Thanks! Hope everyone is having a great day! Bless! 🙏

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

        @Chazrox said in Need More 'reg' variables !:

        Can I create a namespace block and leave it in my interface script just to get more reg?

        I think you should reorganise your code into namespaces anyway, it sounds like you're dumping everything in onInit currently?

        Can you change any of your reg to const?

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        ChazroxC 1 Reply Last reply Reply Quote 0
        • ChazroxC
          Chazrox @d.healey
          last edited by

          @d-healey I do everything on onInit, then I split them into namespaces, but up until now, I always try to leave just the core, factory settings, any initializations and all global variables and stuff like setting combobox lists and stuff like that on interface. I think im somewhat organized to my best knowledge.

          I usually end up moving as much as possible to external namespaces as I move along.

          Screenshot 2025-11-24 at 1.44.19 PM.png

          @d-healey said in Need More 'reg' variables !:

          Can you change any of your reg to const?

          can you give me a quick tip on which reg's be change to const? 🙏

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

            @Chazrox said in Need More 'reg' variables !:

            can you give me a quick tip on which reg's be change to const?

            All component and module references, arrays, and objects.

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - Public HISE tutorials
            My Patreon - HISE tutorials

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

            34

            Online

            2.0k

            Users

            12.9k

            Topics

            111.9k

            Posts