Can't easily add Lyrics in Plugins

• Sep 11, 2017 - 09:42
Type
Plugins
Severity
S1 - Blocker
Status
closed
Regression
No
Workaround
No
Project
  • 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.

Comments

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 via Lyrics.verse property.

Fix version
3.3.0