Control-Surface icon indicating copy to clipboard operation
Control-Surface copied to clipboard

Switching between CCButton and CCLatched

Open diegogauffin opened this issue 1 year ago • 2 comments

Hey Pieter! How are you? Hope fine! I was thinking it would be really usefulll to get a way to change between CCButton (momentary) and CC Latched in the run. Do you think is that posible ? I mean doing it without changing the code, upload and so on.

diegogauffin avatar Nov 14 '24 12:11 diegogauffin

You can use pointer to MIDIOutputElement and delete/create instance of CCButton or CCButtonLatched. If you need to use getAddress() or setAddressUnsafe() there is no common interface for this but Pieter came with a workaround that helped me a lot: https://github.com/tttapa/Control-Surface/pull/971#issuecomment-1793139526

gwilherm avatar Dec 02 '24 22:12 gwilherm