When changing the Button name do not work anymore
-
try to rename in this snippet the buttons and you will see
-
@WepaAudio Did you change the button name in every place in the script?
-
@d-healey yes , that's the strangest thing
-
@WepaAudio Post a snippet of the version that doesn't work - after you've changed the names.
-
HiseSnippet 1693.3oc0X01aTbCDd2jrTtqDTohOzuTIKTk5EoP3dIAPPq3HugNUN3Tt.pRHD3rq26byd1qV6KgqUH0eR868K8mD+CZGau6sd2bIjDf.8jhTlwyX+3mYrmwauDtOQH3INtU1cRLww8Jd8mvjC2XHlxb5rIn2ayjwi1i+Fm0mDiEBRfiq67ORMrakEbz+d2CVGGgY9jbUNNOmS8IOlNhJy0951+BMJZab.YW5HKqWscGeNaCdDeL.k48p6Di82GOf7Drxr47bbuzVATIOouDKIBG2EVmGLo+P9gLi8OmJn6EQTBMb5CSjQ817n.EhUZc1XHMJnW1VV33350Km.l2P.W2qKMfNUeNQ7M5AP4dXyGtyUDdyW.dMrgWcK3MCH4ZAoELP5Zd88Snwx7QT34q85vjjjPLP61PwXqyb+8k81fCVvjqLBuOY6DPXpG0tc85KiVqd8kt+hUWr5stEpOfdBRNjfHG.9fnAHdnVd.gQRfsU.hwkDTHOQqVKvYqrXUHzIjnCvIFW6DHP+L5E2rwxHyeuLaMdlffvnPZzHgD.IRxQh8oLX5nBzdikRNyd1VWqoGNnALeY6kAD4F7QwbFHT6F4lbC0NAVitvdEQknQ7QfE3jIHAGV.LriBQS3iQIjHBVX1pi3iEjkUleHjWhDDV..PyNKLDMBXaHIbwp4KyJBBrrTQ2ro+FKijIiIkVcFmcyXRhfJTfNGBvBwY+nD3TPI9.fSgsebBAlUABCqtONJBzxYv.TIEGQEXIUwKkwfx8NrdZeAPDhiDDSz7Chqa9945lZtNW7j3jxVc7ndFXo06GKsJhkVmJrz5jvR3XluhwgXvSfDgmxpsT0+XwpH3GPq6pnO04IgNAxPjnAbT.bVOKEKNBOAH+tc1riNYx3s3PpzeXstljJ0FRM+OAtbkjTaokLFktRpe9przUu68R4CcX+43nwjZlMDZuDB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3ikPA0rhZdPku9P0dehc8u4T0TMx0yZ3rOgEnE9W3W5fMxJVpFrQ1fN9YSEr2R+e8yTbmmvTUNz80EAkgirSoEPOEJHAEztPP4HreB+U9lOegBqWVqAPIS+M7q30UIiZ3nekI3mW8Up6LBJU8Jee0AgaBL7r8o44vmVmCeV8b3yZmCet84vm6bN74tmnOptDd3XIej4RRPQusLIVtaMMwZdm+CD8AF0A
-
@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.