How to make the indicator light turn on when KeySwitch is pressed
-
How to make the indicator light turn on when KeySwitch is pressed?
-
@BobCat use the onNoteOn and onNoteOff callbacks
-
@Lindon Sorry, I'm a newbie, I tried it myself, but it didn't work, can you help me, give me a HISE snippet, I would like to express my gratitude!
-
My idea is that when the key is pressed, the skill symbol (button) on the interface can always be on. I tried to connect this button, but the status of this button cannot change the status of the button on the interface.
-
@BobCat Post a snippet of what you have so far
-
This post is deleted! -
HiseSnippet 4321.3oc6c8EibaTF26c2jb6k+VZEBg.IyIpzF50K1q2+cTZuM2+ZCMWxwdosDUEZ84c1cMmW6U1dSxlnHEg.ABABP7DBIDB3Ad.gnhGJ7Vdj24YjJOPQHPnxK7J7MisWO165c8s4xl6RGKsI2Ly2L96ey27yedr8N1VZXGGKagLYuduNXgLmFsaOS2Vq2RU2T3xaHj4DHmVZ8DVqWGUGGbcgLYl8UIskI6bBBBevuryeY00TMTM0v9UQOdSKcM7Uzaq6FV6NUeccCisTqiutdaFpKT8xZVlqaYX0E3iYQRBcT01WsI9ppDxlAALwl00csr20U0E6HjYt0rp2a2VV21zi92T2QeOCLofrvtv.4U8VVF0IbLoVg0aoaTem.40QPHyytSnzOqmz+bns0qq2u9Psv4oMHF1CV8QlYhxdyFg8jYYOIF1aHrzLLrzbdrzyf1UyVuiaXKD94TnKa5hsanBpcVVwiVgYp8LHw0s.RLcWts593srgB86RtRRRKIB+yEdoEVP7hW7ESywBK.VIGWwaoZK5n1tiAdebOGwWV7sUprjnxJKIV.FzBxvu7vOE3WA3WQ3WI3WY3GPWAfth.cEA5JBzUDnqHPWQfth.cEA5JBzUbEBCB+.5JAzUBnqDPWIftR.ck.5JAzUBnqLPWYftx.ckA5JCzUFnqLPWYftx.ckA5p.zUAnqBPWEftJ.cU.5pT5luzBMrrEyoChizKIpK9kXDwkMvlMcaAU+BuvEV3dKjcSyl5l3kcvtuNtmmeatPxea8atjnWsNKeac2VWxnSK0bA0rmQW7RhRKKW7Bf1+9KbwKBCxt.cZsdwz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dqu6AGX2jArqBGXGGXGOkcbfcbfcbfcOI1icS4G94FRDrcbjcG4Q1s.p2cMou754X6lPrcqvw1cbcW1E9UUdJiq6A2jiqiiqiiqiiq6QDWmB+UUHGW2P2kcAeX53v5Nfv5x5+BrVh+zSbbEWmRPMUl1uSadWNtNNtNNtNNttI9cZSqV83unB4X5F56zFhuAGO2DhmSlmmN9qovCNjtq9a3P53P53P53P5lPHcmD4v+.zwA0k3GfNmg9AniCqKkv53eSQ3en43en4335335335lxOyDNOA9Xw0PSZEoU3OOrGCdlIb3er3djP1ovSX2wQjcO6.H6l1P69u+JNzNNzNNzNNztGEncS0uXbD8JOYcGKvzw+Tw8Hfoq.GS2SGX5xOkwzI7q4X53X53X53X5lPLcygZawSUGGV2Pf0QcM3P5lPHcE4P53ooimlNNjNNjNNjtCCHcSCtrspls06n4sl.gWmmVCvklpTTcnsIkEkCVD.gjVVRnMrB36noQbxeQXo7g2m7SPeTlf9TXB5SwInOklf9TdB5SkQ1GB3iK000psWPOnhc1zywJyl8crlU3+CVV8b7B
-
In your on note on callback:
Button1.set(value);
I think what you want is
Button.setValue()
-
@d-healey I succeeded, thank you very much