cursor.addNote doesn't update internal segment reference
Reported version
3.x-dev
Type
Plugins
Frequency
Once
Severity
S4 - Minor
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
No
Project
The method Cursor.addNote
moves the input position of the score to the next segment but it doesn't update the segment reference of the Cursor.
For instance, when running createscore.qml plugin the method Cursor.next()
isn't needed since addNote
already moves the score to the next segment. Using Cursor.next()
creates unwanted rests inbetween notes.
However, Cursor.addNote
leaves the attribute cursor.tick
to 0.
Fix version
3.3.4
Comments
It is similar to an old issue fixed in 2.0 : #100181: cursor.addNote doesn't update internal segment reference
https://github.com/musescore/MuseScore/pull/5152
Fixed in branch master, commit 7470a650db
fix #291085 : cursor.addNote update internal segment reference
Fixed in branch master, commit 44f95aed16
_Merge pull request #5152 from Sonny-Klotz/291085-pluginaddnote
fix #291085 : cursor.addNote update internal segment reference_
Automatically closed -- issue fixed for 2 weeks with no activity.