Question: Instrument vs Part in the Plugin API
In the Plugin API: I am trying to understand the difference between the 'Instrument' object and the "Part" object. And how each relates to the Staff object. There are no properties across the three object-classes that can serve as associative keys. And in the plugin class hierarchy diagram all three of these objects just hang off the tree as individual leaf nodes. However, in exploring property values in actual scores I have arrived at the below Entity-Relationship diagram.
Could anyone confirm or correct my understanding?
Also attached are two files that I represent (a cleaned up) exploration test-bed for this.
01_FigureOut_InstrumentsObject.qml
TEST_InstrumentsObject.mscz
Attachment | Size |
---|---|
ER-diagrams.odp | 16.92 KB |
Comments
If I am right:
"Part" can contain multiple staves (f. ex. piano part contains two staves - treble and bass, or set of linked staves).
"Part" normaly contain single instrument, but can also contain multiple instruments - it is possible to change instrument in score in one staff.
What is called "Parts" in UI dialog, is called "excerpts" in plugin. https://musescore.github.io/MuseScore_PluginAPI_Docs/plugins/html/class…
In reply to If I am right: "Part" can… by sammik
>What is called "Parts" in UI dialog, is called "excerpts" in plugin.<
Ah! Thanks sammik, that fills out a missing piece in my head.