How to play the note's sound while selecting it by the plugin?
While user selecting a note by mouse or keyboard, the MuseScore plays that note's sound.
However, if it was selected by a plugin using something like
curScore.selection.select(cursor.element.notes), it does select the note but doesn't play the sound.
I tried some workarounds by using some commands in
cmd() but haven't got any results so far.
Anyone got any ideas to achieve this?