Skip to content

Calling a custom function from a button press in a mux #966

Answered by tttapa
MoSaye asked this question in Q&A
Discussion options

You must be logged in to vote

You can get the button state from the NoteButtons:

if (LimitSwitches[i].getButtonState() == Button::Falling)
  someFunction();

If you need more flexibility, see this example: https://tttapa.github.io/Control-Surface-doc/Doxygen/d4/d3b/Custom-MIDI-Output-Element_8ino-example.html

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@MoSaye
Comment options

Answer selected by MoSaye
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants