HISE Logo Forum
    • Categories
    • Register
    • Login

    Start timer based on the values of the buttons in an array

    Scheduled Pinned Locked Moved Scripting
    13 Posts 3 Posters 1.3k 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 @aaronventure
      last edited by

      @aaronventure What about if (myArr.contains(1))? No need for a loop then.

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

      Oli UllmannO A 2 Replies Last reply Reply Quote 0
      • Oli UllmannO
        Oli Ullmann @d.healey
        last edited by

        @aaronventure
        Good idea, thank you very much! :-) I'll try that.

        @d-healey
        Did you see that I was talking about the value of the buttons? I don't know how to apply your suggestion to buttons...

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

          @Oli-Ullmann Ah sorry I misread that. I thought you were storing the button values in an array.

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

          Oli UllmannO 2 Replies Last reply Reply Quote 1
          • Oli UllmannO
            Oli Ullmann @d.healey
            last edited by

            @d-healey
            Ah ok. :-)

            1 Reply Last reply Reply Quote 0
            • Oli UllmannO
              Oli Ullmann @d.healey
              last edited by

              @d-healey
              But another question:

              If I use getAllComponents, is there a way to select all components except the components with a specific name?

              In my case, I want to select all components except the components that have “UI” in their name. Do you know if this is possible?

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

                @Oli-Ullmann It uses regex so it might be possible - ChatGPT could possibly help but might require some tweaks to its output because HISE regex is none standard

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

                Oli UllmannO 2 Replies Last reply Reply Quote 1
                • Oli UllmannO
                  Oli Ullmann @d.healey
                  last edited by

                  @d-healey
                  Ok, thank you! :-)

                  1 Reply Last reply Reply Quote 0
                  • Oli UllmannO
                    Oli Ullmann @d.healey
                    last edited by

                    @d-healey
                    Thank you, that worked.
                    For the “UI” example, the code is as follows:

                    Content.getAllComponents(“^(?!.*UI).*$”);
                    
                    d.healeyD 1 Reply Last reply Reply Quote 3
                    • d.healeyD
                      d.healey @Oli Ullmann
                      last edited by d.healey

                      @Oli-Ullmann Good to know, I might include that in a video.

                      Should also work with getAllModulators, getAllEffects, etc.

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

                      Oli UllmannO 1 Reply Last reply Reply Quote 2
                      • Oli UllmannO
                        Oli Ullmann @d.healey
                        last edited by

                        @d-healey
                        Yes, that's a great topic for a video! If I had known this earlier, it would have saved me a lot of time and programming effort.

                        1 Reply Last reply Reply Quote 0
                        • A
                          aaronventure @d.healey
                          last edited by

                          This post is deleted!
                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post

                          15

                          Online

                          2.0k

                          Users

                          12.6k

                          Topics

                          109.7k

                          Posts