Forum
    • Categories
    • Register
    • Login

    When changing the Button name do not work anymore

    Scheduled Pinned Locked Moved General Questions
    21 Posts 2 Posters 1.8k 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.
    • W
      WepaAudio
      last edited by

      try to rename in this snippet the buttons and you will see

      1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @WepaAudio
        last edited by

        @WepaAudio Did you change the button name in every place in the script?

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

        W 1 Reply Last reply Reply Quote 0
        • W
          WepaAudio @David Healey
          last edited by

          @d-healey yes , that's the strangest thing

          David HealeyD 1 Reply Last reply Reply Quote 0
          • David HealeyD
            David Healey @WepaAudio
            last edited by David Healey

            @WepaAudio Post a snippet of the version that doesn't work - after you've changed the names.

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

            W 1 Reply Last reply Reply Quote 0
            • W
              WepaAudio @David Healey
              last edited by

              @d-healey

              HiseSnippet 1693.3oc0X01aTbCDd2jrTtqDTohOzuTIKTk5EoP3dIAPPq3HugNUN3Tt.pRHD3rq26byd1qV6KgqUH0eR868K8mD+CZGau6sd2bIjDf.8jhTlwyX+3mYrmwauDtOQH3INtU1cRLww8Jd8mvjC2XHlxb5rIn2ayjwi1i+Fm0mDiEBRfiq67ORMrakEbz+d2CVGGgY9jbUNNOmS8IOlNhJy0951+BMJZab.YW5HKqWscGeNaCdDeL.k48p6Di82GOf7Drxr47bbuzVATIOouDKIBG2EVmGLo+P9gLi8OmJn6EQTBMb5CSjQ817n.EhUZc1XHMJnW1VV33350Km.l2P.W2qKMfNUeNQ7M5AP4dXyGtyUDdyW.dMrgWcK3MCH4ZAoELP5Zd88Snwx7QT34q85vjjjPLP61PwXqyb+8k81fCVvjqLBuOY6DPXpG0tc85KiVqd8kt+hU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Fg78OEXL88TK5sUXHwWlCvE719W+z73I6k+6MK+250WBWuLhxFzGOJFJHm9p1LoKzW0BIcQbbPe5uaY1+zd8w.EkTT6e0VuTODdhBqvZkB7cHwDrDhx49758auyNOJgONtrWu6A5bhcSfWUCLg8.OkQ.pVZuG2HgKDgv1QOWB6g5MNYfhqx0rCbwdhnnNnuMHbyXPQgrCcPQbU3k52ECOG4M1VqWk56h0gX3o9Z4FkjaVRtUI4UKIuVI4aWR9N4xFBsKNVkXn9TCkp87UmtZOvDzCCaYKKWmNX5jazX+8HlRyZnX8sLlwWE3Rep9PEKb5NqcxeGk+Gb6YguqRkLL1mphNawN.NVBZLWetIIDONRNUqMH6xY73gbF0u3Y.Hmdv.RhMzm494gRIbDLWy0auiok0bU+P6GSYDbRgi1mMpnwY9SLMyv024YfKRcsF5CIrcglkchE.m+TU.7iNdO+ECuPotqlVVDAqdh7K737U7z2jiTEd+bA0c3ikPA0rhZdPku9P0dehc8u4T0TMx0yZ3rOgEnE9W3W5fMxJVpFrQ1fN9YSEr2R+e8yTbmmvTUNz80EAkgirSoEPOEJHAEztPP4HreB+U9lOegBqWVqAPIS+M7q30UIiZ3nekI3mW8Up6LBJU8Jee0AgaBL7r8o44vmVmCeV8b3yZmCet84vm6bN74tmnOptDd3XIej4RRPQusLIVtaMMwZdm+CD8AF0A

              David HealeyD W 2 Replies Last reply Reply Quote 0
              • David HealeyD
                David Healey @WepaAudio
                last edited by

                @WepaAudio You haven't changed the name in all places of the script.

                Think about how the script does what it does.

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

                1 Reply Last reply Reply Quote 0
                • W
                  WepaAudio @WepaAudio
                  last edited by

                  it could be here?, ![alt text](Screen Shot 2024-08-23 at 1.10.03 PM.png image url)

                  David HealeyD 1 Reply Last reply Reply Quote 0
                  • David HealeyD
                    David Healey @WepaAudio
                    last edited by

                    @WepaAudio That's not it.

                    Describe to me in words what the script does.

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

                    W 1 Reply Last reply Reply Quote 0
                    • W
                      WepaAudio @David Healey
                      last edited by

                      @d-healey that script simulate drum pads, when I click on the button it reacts like a drum pad and play the sound on that key and when I press my midi controller it also play the sound and turn on and off that button so it looks like a drum pad pressed, now, when I change the name on the pad and in the code if I press my midi controller it sound but the button does not turn on or off

                      David HealeyD 1 Reply Last reply Reply Quote 0
                      • David HealeyD
                        David Healey @WepaAudio
                        last edited by David Healey

                        @WepaAudio said in When changing the Button name do not work anymore:

                        when I press my midi controller it... turn on and off that button

                        If you were writing a script how would you do this?

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

                        W 1 Reply Last reply Reply Quote 0
                        • W
                          WepaAudio @David Healey
                          last edited by

                          @d-healey I believe I make a callback for that slider, what I dont know how to do is the logic that goes inside

                          but when you got a little time try to open the working snippet and change the button names, it won't work, then put back the original button names and it will work, is the strangest thing I've encounter using Hise, I've re done larger scripts snippets and changed perfectly the names and more and got them working properly, this one got something I cant see the problem

                          David HealeyD 1 Reply Last reply Reply Quote 0
                          • David HealeyD
                            David Healey @WepaAudio
                            last edited by

                            @WepaAudio Don't overthink it, how would you trigger an action when HISE receives a MIDI note?

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

                            W 1 Reply Last reply Reply Quote 0
                            • W
                              WepaAudio @David Healey
                              last edited by

                              @d-healey answering your question I believe is creating a reference for that button and also creating a call back, but I dont know how to fill the logic area,i got an idea, let see, I will do my best , you right ,I need to do it my self if I want to learn more, that way is the way to really learn, thank you

                              David HealeyD 1 Reply Last reply Reply Quote 0
                              • David HealeyD
                                David Healey @WepaAudio
                                last edited by David Healey

                                @WepaAudio Right I'm going to put you out of your misery. 😃

                                If you want something to happen when a note on is received then you need to put it in the on note on callback.

                                You can also search the entire script for text by right-clicking in the script editor and selecting Find all occurrences.

                                Now try and find where you didn't change the ids of the buttons.

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

                                W 1 Reply Last reply Reply Quote 0
                                • W
                                  WepaAudio @David Healey
                                  last edited by WepaAudio

                                  This post is deleted!
                                  1 Reply Last reply Reply Quote 0
                                  • David HealeyD
                                    David Healey
                                    last edited by

                                    You need to wrap everything in code tags, it's difficult to follow the code when it's unformatted.

                                    In general I would say don't try and merge different snippets or bits of code you find on the forum, it tends to lead to a Frankencode mess.

                                    You need to understand what each bit of code does, and how it works, then rewrite it into your own project in a way that makes sense. If you don't know what the code does and how it does it then you don't have control over your own project and you'll keep running into these issues.

                                    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

                                    33

                                    Online

                                    2.1k

                                    Users

                                    13.0k

                                    Topics

                                    112.5k

                                    Posts