playNote has an id. Can I somehow check, using this id, if its voice is running (active) or not? Because a physical key can be still held, while a sample has already ended and its voice stopped.
You can use getUsedVoices
but I don’t think it’s possible to check if a specific voice is still active or not.
What is the reason you need this?
You could try to use the id to releaseVoice
or fade
, as a safety measure. But it won’t help you knowing if the voice is still active.