ENUM for Segment Types in MS4.5.2
Is there an ENUM defined for Segment Types in MS4.5.2 plugins.
These are the sort of values that I am seeing but I would prefer to check an ENUM rather than use hard-coded numbers.
Is there an ENUM defined for Segment Types in MS4.5.2 plugins.
These are the sort of values that I am seeing but I would prefer to check an ENUM rather than use hard-coded numbers.
Do you still have an unanswered question? Please log in first to post your question.
Comments
If it can be of any use, these seem to be the names assigned:
In reply to If it can be of any use,… by ILPEPITO
Thanks. Are those names available as named constants in the plugin api?
In reply to Thanks. Are those names… by yonah_ag
Yes,
https://musescore.github.io/MuseScore_PluginAPI_Docs/plugins/html/names…
These are the typical values for cursor.filter, for example:
cursor.filter = Segment.BarLineType | Segment.Clef
I've never used them much so you have to check, but they don't seem to have changed compared to MS3
In reply to Yes, https://musescore… by ILPEPITO
Some of them have definitely changed which became evident in a plugin that I'm porting from MS3, so I thought that I'd move to named constants for some future proofing.
In reply to Some of them have definitely… by yonah_ag
SegmentType is a new enum in MuseScore 4.6
In reply to SegmentType is a new enum in… by XiaoMigros
Thanks for the heads up.