Keyboard latch function button
-
Ive been trying to figure out how to ad a button to the UI that controls the "ToggleMode": false/true of my floatingTile keyboard. I imagine this is simple, but I just can't seem to crack it. Any pointers?
-
@Sortehane you can change the data inside the JSON, if you select the floating tile component and press "j", you'll see the JSON data.
Here I set the keyboard JSON data inside the "Toggle" buttons callback
HiseSnippet 1263.3ocsVssaaaDDcoroQEaaPCPepOQnmjQMBjjUzkTTDEIYk5lXa0HG2fVCDrlbkzBSsq.4JaKXXff9kkOo9G3NC4xK5RcbEP0C1XNyk8vkyb3z2W5vBBj9Di7mNeJiX7MlClKTi6LlxEjC6RLdh4Qz.Ey2NBp87ozf.lKwvXqWi.F42lD96ueYapGU3vRgHjyjbG1a4S3pTz9sdC2yqG0kcJeRlnq15PGonizSNC3yVlkHSoNWRGwNlhgkyjXryAtbkzefhpXADisaKcmOXr7ZQT7mwC3W3wPixjAPghf6I8bQFinjNi4dt8ietCHPU5mdKrUzsv2adD2kmfmda7cgNrSyH68gQtEo2VKPux+azaMTxHCk1NhRO0bfiOepJ0Cxmu17PA7xYHEt1yRknXI4d41lcjPDB0ylPuj0yGLRxnXsRk1yF9yt+jkEb0GnreCadf8OaGmyHlpibxTo.LJV.cV.i0xhK73Bl8vYBGEWJrkhSkiF4wZqDXt9RuhNwItm8UTuYrcst0JebgCX3CxTluhyB.VM4WGbxw5SXOq7Pj11ETvCdgWXWH5gommjp3hQmx8XXLP.bWzcbR.vMfcomUJxXNXre8Dyq4tpw.D77FCMlwGMVAXoQoI3o5iFp8ERpuqt9WLJp8DbUsRip0q0b+F5D4J1jTmOuRyFUare4k8UILylUaVqdklOOxqhciJISc05RUT77u8bgs84HM9cj9mCXUpBbMBtKOXpGc9INJ5UrimM4BlOFwPpW.SGxakWCIinM0H+BWCTtRcMTmYAJ4jW6SmNl6DrbI5xFRm4od0zoLpONfiAn7mE6usGLlB07cvqG44guAp0L7WiFkp2rT8x5.iZQNR5hUnf8OF0W.+ufN.b1Bl0DBlWHA0vuOfcFyAFrxxvLD.72yipFnl6wVl7G0+f32gqwELo5qxbhURccfvMKUpct3tBV4uCZ+uCl.V+.RxLPgcwNb8jPGpm2EvUTwUGRhFlrrxLGcrTwNQTLbZw5NK6kcMb3Z8oKnGyestQkV+GJwhhv1mrypXff7yhZZ673zzbhtexDnTbnfqNYJSa+vhxD8ELpEpYHDpJTI7IZkv1yTJofvcQYvjaVR3CP1uAQd+g33TbofplJ8.XcYWAeiJRjMuYWVvkJ4T3yMIuWgOJpzeUXUknvieGSTChbS1Scdhg80sB0dR.97e0JR4IA4S+VqLBODCKy3lVRrjCD6Nttt2igmpmfn2e+8+vhnUzvgAmJufnwzK7FI2eXXdqksch9Rr7BhsFwkjAHzejxRnvBZFJqnUUP6E0TVHyUDThGmQmKnlrVwDLpTojBunjlvYTOBEOPrUjNxdTY0MVffYDMVFOqhQnfgFOUtHTsv5NrENoAZmGUmaZ+ym8Zk1+zRtT+ym9yk6eHcaQVckAXYEo6L3IbwMXv01zN.IfEVa.WMPDvUyytV2+g0ZJ8fq07Xo3SM6yUNiWOGysFNBi1+evQ8xfeq4ACGBMQoDbaydeXS276Kb7uSNCkVNhp74P+fIL3M.FccX5tKn3lF4PAxH6RnMdCLfIbCMv4dsyxnsg1Y4XmjITGe4GchjUw0M+pPDfShvMsyCq7C11kWUKcBLi8QGmEK0JIVYSSb+MMwpaZhOeSSr1llX8MMwFe4DQIvWMCzciFaHDPYJTo2v3.AE5.C6VI+S4Jb9D
-
Yes exactly! thanks Ulrik. Could I trouble you for the snippet where it releases pressed keys on Toggle off?
-
@Sortehane check if the value for the toggle is 0 in its callback, then call Engine.allNotesOff().
-
Thanks! works like a charm