Can't easily add Lyrics in Plugins
- Cursor.add does NOT support Lyrics, in fact, it crashes Musescore.
- Chord.add DOES support Lyrics, but you can't set the Lyrics.no property from plugins.
- newElement does not warn if an invalid element argument is passed, and will crash MuseCore if you attempt to add it... ie, accidentally using newElement(Element.Lyrics) instead of newElement(Element.LYRICS) will cause a crash.
Fix version
3.3.0
Comments
Fixed in branch master, commit c77d904eaa
fix #251436: plugins: support more element types in Cursor, add sanity checks for add() argument
Fixed in branch 3.3rc, commit 08b32bce34
fix #251436: plugins: support more element types in Cursor, add sanity checks for add() argument
For the record, the mentioned commit concerns points 1 and 3 from the list in the initial report. Changing
no
for lyrics is already available viaLyrics.verse
property.Automatically closed -- issue fixed for 2 weeks with no activity.