 |
MuseScore Plugins
3.2.3
Plugins API for MuseScore
|
13 #ifndef __PLUGIN_API_PART_H__
14 #define __PLUGIN_API_PART_H__
16 #include "scoreelement.h"
17 #include "libmscore/part.h"
28 Q_PROPERTY(
int startTrack READ startTrack)
29 Q_PROPERTY(
int endTrack READ endTrack)
67 Part(
Ms::
Part* p =
nullptr, Ownership o = Ownership::SCORE)
70 Ms::Part* part() {
return toPart(e); }
71 const Ms::Part* part()
const {
return toPart(e); }
73 int startTrack()
const {
return part()->startTrack(); }
74 int endTrack()
const {
return part()->endTrack(); }
75 QString
instrumentId()
const {
return part()->instrument()->instrumentId(); }
76 int harmonyCount()
const {
return part()->harmonyCount(); }
78 bool hasTabStaff()
const {
return part()->hasTabStaff(); }
79 bool hasDrumStaff()
const {
return part()->hasDrumStaff(); }
80 int lyricCount()
const {
return part()->lyricCount(); }
81 int midiChannel()
const {
return part()->midiChannel(); }
82 int midiProgram()
const {
return part()->midiProgram(); }
83 QString
longName()
const {
return part()->longName(); }
84 QString
shortName()
const {
return part()->shortName(); }
85 QString
partName()
const {
return part()->partName(); }
86 bool show()
const {
return part()->show(); }
QString instrumentId
The string identifier for the current instrument.
Definition: part.h:31
bool hasDrumStaff
Whether it is a percussion staff.
Definition: part.h:35
QString longName
The long name for the current instrument.
Definition: part.h:49
Base class for most of object wrappers exposed to QML.
Definition: scoreelement.h:42
bool show
Whether part is shown or hidden.
Definition: part.h:63
int lyricCount
The number of lyrics syllables.
Definition: part.h:41
int harmonyCount
The number of Chord Symbols.
Definition: part.h:33
QString partName
The name of the current part of music.
Definition: part.h:59
QString shortName
The short name for the current instrument.
Definition: part.h:53
int midiChannel
One of 16 music channels that can be assigned an instrument.
Definition: part.h:43
bool hasTabStaff
Whether it is a tablature staff.
Definition: part.h:39
int midiProgram
One of the 128 different instruments in General MIDI.
Definition: part.h:45
bool hasPitchedStaff
Whether it is a 'normal' staff with notes.
Definition: part.h:37
Definition: cursor.cpp:29