When changing the Button name do not work anymore
-
@WepaAudio You haven't changed the name in all places of the script.
Think about how the script does what it does.
-
it could be here?, ![alt text]( image url)
-
@WepaAudio That's not it.
Describe to me in words what the script does.
-
@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
-
@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?
-
@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
-
@WepaAudio Don't overthink it, how would you trigger an action when HISE receives a MIDI note?
-
@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
-
@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.
-
This post is deleted! -
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.