Snippet “select everything on the score, filter the [ ] by element type” has issues

• Aug 28, 2022 - 09:08

(Not sure where to report this)
This snippet in “Boilerplates, snippets and use cases”,filter_the[_]_by_element_type
needs nstaves instead of nstaves – 1 (to select all staves)
curScore.selection.selectRange(0,curScore.lastSegment.tick + 1,0,curScore.nstaves); //cmd("select-
needs to be sandwiched between
curScore.startCmd(); & curScore.endCmd();
See [node: 334669]

Attachment Size
SelectEverything.qml 417 bytes


Do you still have an unanswered question? Please log in first to post your question.