How do I disable the floating tile MidiChannelList from the script?
-
I am trying to use a button to turn the MidiChannelList on and off.
I was thinking I need to change the "enabled" state of the floating tile:
by using ".enabled(false);" on the component:
But it does seem to like that:
So how can I disable the channel filter from the script?
-
@VirtualVirgin guessing it might be:
ChannelSelector.set("enabled", false);
-
@Lindon
So I tried:
ChannelSelector.set("enabled", false);And it complied OK.
But it did not disable the floating tile MidiChannelList.
It also crashed after about 30 seconds of testing :( -
@VirtualVirgin Show me your code please
-
I just put together a simple example for myself and it does work, but I also get the crash! So you need to make a bug report about this on github.
In the meantime here's a workaround that uses an invisible panel placed over the floating tile that is hidden/shown to enable/disable the floating tile.
HiseSnippet 928.3ocsU8taSiDDe2ztUDyeNP5d.7UwGRQnJGhSnmPmtdMs4tHnkHRAwmNzl0ahWU6csrWCDAHwm3Afmn6Q5dCfY8ehcZiJsQB+gnLyryu42L6LyNJVw3IIpXD15z4QbD9VjwykZ+99TgDM7PDdKhlGFgNXdDMIg6gv3M9aiMbyMQYe++ed.MfJY7JUHzqTBF+YhPgtR6n8epHHX.0iepHr1oc2eHSI6qBTo.O1f3fhnryny3mPMGqAA8OzDeD9AjdreuqyDtS2t641YOW2dt855L0oyzI60ycRmG61wysaaVGf0G4Izp3wZplm.fdfxa9Xe06j4A3UhDwj.tQnMZLD4b0n99h.uQkEkDDBu4npRzF4knekbrvSrPeUo5tYFrq7ndQC23xnT6qAkv0nzl4T5djwrXQjtxhgO2jLTp4wSovcScpjeVTiuhI8UvIj5cComwGDCBK7nUOGmGZC+rySrrf6mDs8aow1inRdPa6+vtzyYbceUXjRBBs1N271FeDx.gjaOMUxzBkzVIOHUqUx1FOiUAsXkt8P.4fT9NVevpYN.6l.Elxy8a4Veh0m.TWcXKPd6c1MwnOyu9zffIPiTqyGX.oZj5Dkl+bYqrfa8IK6yaZ5zUZq.q.d7JMa5viuLGaISCmviqm5lCB2nK2lr0UqMgkWVpcPkbnTnedDuPdfJvyb8a9+EapPE0US6UACgipyZttSQyUdUDI.PZRJ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