Playing a note until it is stopped

I’m using a wind MIDI controller to play synths. So far I was not able to figure out how use the play command in a way that I can play a note indefinitely until I decide to stop it.
How can this be done?

This may be of interest:

There are possibly many other examples/clues elsewhere in the forum - search for ‘midi synth input’ :slightly_smiling_face: