HISE Logo Forum
    • Categories
    • Register
    • Login

    When changing the Button name do not work anymore

    Scheduled Pinned Locked Moved General Questions
    21 Posts 2 Posters 699 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 @WepaAudio
      last edited by

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

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

        @WepaAudio That's not it.

        Describe to me in words what the script does.

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

        W 1 Reply Last reply Reply Quote 0
        • W
          WepaAudio @d.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

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @WepaAudio
            last edited by d.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?

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

            W 1 Reply Last reply Reply Quote 0
            • W
              WepaAudio @d.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

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

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

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

                W 1 Reply Last reply Reply Quote 0
                • W
                  WepaAudio @d.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

                  d.healeyD 1 Reply Last reply Reply Quote 0
                  • d.healeyD
                    d.healey @WepaAudio
                    last edited by d.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.

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

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

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • d.healeyD
                        d.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.

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

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

                        10

                        Online

                        1.7k

                        Users

                        11.9k

                        Topics

                        103.5k

                        Posts