25 class InstrumentTemplate;
66 int nstaves()
const {
return _staves.size(); }
70 void setId(
const QString& s) { _id = s; }
71 QString
id()
const {
return _id; }
const QList< StaffName > & longNames() const
Definition: instrument.cpp:1383
InstrumentList _instruments
Definition: part.h:49
void removeInstrument(const Fraction &)
Definition: part.cpp:307
Part(Score *=0)
User specified color for helping to label parts.
Definition: part.cpp:34
Global staff data not directly related to drawing.
Definition: staff.h:62
void setShow(bool val)
Definition: part.h:105
Pid
Definition: property.h:62
QList< Staff * > _staves
Definition: part.h:50
void setMidiChannel(int ch, int port=-1, const Fraction &tick={-1, 1})
Definition: part.cpp:275
bool _show
show part in partitur if true
Definition: part.h:52
void removeStaff(Staff *)
Definition: part.cpp:217
QString shortName(const Fraction &tick={ -1, 1 }) const
Definition: part.cpp:376
int midiChannel() const
Definition: part.cpp:251
Definition: scoreElement.h:173
QString instrumentName(const Fraction &tick={ -1, 1 }) const
Definition: part.cpp:367
QString longName(const Fraction &tick={ -1, 1 }) const
Definition: part.cpp:357
void setColor(int value)
Definition: part.h:120
Definition: instrument.h:250
QList< Staff * > * staves()
Definition: part.h:67
QString partName() const
Definition: part.h:117
void setLongNames(QList< StaffName > &s, const Fraction &tick={ -1, 1 })
Definition: part.cpp:165
void write(XmlWriter &xml) const
Definition: part.cpp:147
int lyricCount() const
Definition: part.cpp:507
void setLongName(const QString &s)
Definition: part.cpp:386
friend void readPart206(Part *, XmlReader &)
Definition: read206.cpp:1088
bool readProperties(XmlReader &)
Definition: part.cpp:99
bool hasPitchedStaff() const
Definition: part.cpp:546
QString id() const
Definition: part.h:71
void initFromInstrTemplate(const InstrumentTemplate *)
Definition: part.cpp:46
virtual ElementType type() const override
Definition: part.h:60
int color() const
Definition: part.h:119
QString instrumentId(const Fraction &tick={ -1, 1 }) const
Definition: part.cpp:348
void insertStaff(Staff *, int idx)
Definition: part.cpp:205
int endTrack() const
Definition: part.cpp:468
QString _partName
used in tracklist (mixer)
Definition: part.h:48
int harmonyCount() const
Definition: part.cpp:527
Instrument * instrument(Fraction={ -1, 1 })
Definition: part.cpp:321
Definition: aeolus.cpp:26
void insertTime(const Fraction &tick, const Fraction &len)
Definition: part.cpp:477
int nstaves() const
Definition: part.h:66
const QList< Staff * > * staves() const
Definition: part.h:68
const InstrumentList * instruments() const
Definition: part.cpp:339
int midiProgram() const
Definition: part.cpp:242
void setId(const QString &s)
Definition: part.h:70
Definition: xmlwriter.h:26
int _color
Definition: part.h:55
int midiPort() const
Definition: part.cpp:260
void setInstrument(Instrument *, Fraction={ -1, 1})
Definition: part.cpp:288
void setPlainShortName(const QString &s)
Definition: part.cpp:413
QString _id
used for MusicXml import
Definition: part.h:51
const QList< StaffName > & shortNames(const Fraction &tick={ -1, 1 }) const
Definition: part.h:82
void setPlainLongName(const QString &s)
Definition: part.cpp:404
QVariant getProperty(Pid) const override
Definition: part.cpp:422
void read(XmlReader &)
Definition: part.cpp:133
bool hasDrumStaff() const
Definition: part.cpp:576
static const int DEFAULT_COLOR
Definition: part.h:54
bool hasTabStaff() const
Definition: part.cpp:561
int startTrack() const
Definition: part.cpp:459
void setShortName(const QString &s)
Definition: part.cpp:395
bool show() const
Definition: part.h:104
Definition: fraction.h:46
Staff * staff(int idx) const
Definition: part.cpp:56
ElementType
Definition: types.h:34
Definition: instrtemplate.h:48
Definition: instrument.h:353
const QList< StaffName > & longNames(const Fraction &tick={ -1, 1 }) const
Definition: part.h:81
const QList< StaffName > & shortNames() const
Definition: instrument.cpp:1392
const Part * masterPart() const
Definition: part.cpp:65
bool setProperty(Pid, const QVariant &) override
Definition: part.cpp:438
void setPartName(const QString &s)
Definition: part.h:118
void setShortNames(QList< StaffName > &s, const Fraction &tick={ -1, 1 })
Definition: part.cpp:170
void setStaves(int)
Definition: part.cpp:179
void setMidiProgram(int, int bank=0)
Definition: part.cpp:230