Control-Surface
Control-Surface copied to clipboard
Switching between CCButton and CCLatched
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.
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