MuseScore
3.4
Music composition and notation
|
#include <instrument.h>
Public Member Functions | |
Instrument () | |
Instrument (const Instrument &) | |
void | operator= (const Instrument &) |
~Instrument () | |
void | read (XmlReader &, Part *part) |
bool | readProperties (XmlReader &, Part *, bool *customDrumset) |
void | write (XmlWriter &xml, const Part *part) const |
NamedEventList * | midiAction (const QString &s, int channel) const |
int | channelIdx (const QString &s) const |
void | updateVelocity (int *velocity, int channel, const QString &name) |
void | updateGateTime (int *gateTime, int channelIdx, const QString &name) |
bool | operator== (const Instrument &) const |
void | setMinPitchP (int v) |
void | setMaxPitchP (int v) |
void | setMinPitchA (int v) |
void | setMaxPitchA (int v) |
Interval | transpose () const |
void | setTranspose (const Interval &v) |
QString | instrumentId () |
void | setInstrumentId (const QString &instrumentId) |
void | setDrumset (const Drumset *ds) |
const Drumset * | drumset () const |
Drumset * | drumset () |
bool | useDrumset () const |
void | setUseDrumset (bool val) |
void | setAmateurPitchRange (int a, int b) |
void | setProfessionalPitchRange (int a, int b) |
Channel * | channel (int idx) |
const Channel * | channel (int idx) const |
Channel * | playbackChannel (int idx, MasterScore *) |
const Channel * | playbackChannel (int idx, const MasterScore *) const |
ClefTypeList | clefType (int staffIdx) const |
void | setClefType (int staffIdx, const ClefTypeList &c) |
const QList< NamedEventList > & | midiActions () const |
const QList< MidiArticulation > & | articulation () const |
const QList< Channel * > & | channel () const |
void | appendChannel (Channel *c) |
void | clearChannels () |
void | setMidiActions (const QList< NamedEventList > &l) |
void | setArticulation (const QList< MidiArticulation > &l) |
const StringData * | stringData () const |
void | setStringData (const StringData &d) |
void | setLongName (const QString &f) |
void | setShortName (const QString &f) |
void | addLongName (const StaffName &f) |
void | addShortName (const StaffName &f) |
int | minPitchP () const |
int | maxPitchP () const |
int | minPitchA () const |
int | maxPitchA () const |
QString | instrumentId () const |
const QList< StaffName > & | longNames () const |
const QList< StaffName > & | shortNames () const |
QList< StaffName > & | longNames () |
QList< StaffName > & | shortNames () |
QString | trackName () const |
void | setTrackName (const QString &s) |
bool | singleNoteDynamics () const |
void | setSingleNoteDynamics (bool val) |
void | setSingleNoteDynamicsFromTemplate () |
bool | getSingleNoteDynamicsFromTemplate () const |
void | switchExpressive (MasterScore *score, Synthesizer *synth, bool expressive, bool force=false) |
Static Public Member Functions | |
static Instrument | fromTemplate (const InstrumentTemplate *t) |
Private Attributes | |
StaffNameList | _longNames |
StaffNameList | _shortNames |
QString | _trackName |
char | _minPitchA |
char | _maxPitchA |
char | _minPitchP |
char | _maxPitchP |
Interval | _transpose |
QString | _instrumentId |
bool | _useDrumset |
Drumset * | _drumset |
StringData | _stringData |
QList< NamedEventList > | _midiActions |
QList< MidiArticulation > | _articulation |
QList< Channel * > | _channel |
QList< ClefTypeList > | _clefType |
bool | _singleNoteDynamics |
Ms::Instrument::Instrument | ( | ) |
Ms::Instrument::Instrument | ( | const Instrument & | i | ) |
Ms::Instrument::~Instrument | ( | ) |
void Ms::Instrument::addLongName | ( | const StaffName & | f | ) |
void Ms::Instrument::addShortName | ( | const StaffName & | f | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
int Ms::Instrument::channelIdx | ( | const QString & | s | ) | const |
|
inline |
ClefTypeList Ms::Instrument::clefType | ( | int | staffIdx | ) | const |
|
inline |
|
inline |
|
static |
bool Ms::Instrument::getSingleNoteDynamicsFromTemplate | ( | ) | const |
|
inline |
QString Ms::Instrument::instrumentId | ( | ) | const |
const QList< StaffName > & Ms::Instrument::longNames | ( | ) | const |
QList< StaffName > & Ms::Instrument::longNames | ( | ) |
int Ms::Instrument::maxPitchA | ( | ) | const |
int Ms::Instrument::maxPitchP | ( | ) | const |
NamedEventList * Ms::Instrument::midiAction | ( | const QString & | s, |
int | channel | ||
) | const |
|
inline |
int Ms::Instrument::minPitchA | ( | ) | const |
int Ms::Instrument::minPitchP | ( | ) | const |
void Ms::Instrument::operator= | ( | const Instrument & | i | ) |
bool Ms::Instrument::operator== | ( | const Instrument & | i | ) | const |
Channel * Ms::Instrument::playbackChannel | ( | int | idx, |
MasterScore * | score | ||
) |
const Channel * Ms::Instrument::playbackChannel | ( | int | idx, |
const MasterScore * | score | ||
) | const |
|
inline |
|
inline |
void Ms::Instrument::setClefType | ( | int | staffIdx, |
const ClefTypeList & | c | ||
) |
void Ms::Instrument::setDrumset | ( | const Drumset * | ds | ) |
|
inline |
void Ms::Instrument::setLongName | ( | const QString & | f | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void Ms::Instrument::setShortName | ( | const QString & | f | ) |
|
inline |
void Ms::Instrument::setSingleNoteDynamicsFromTemplate | ( | ) |
|
inline |
void Ms::Instrument::setTrackName | ( | const QString & | s | ) |
|
inline |
void Ms::Instrument::setUseDrumset | ( | bool | val | ) |
const QList< StaffName > & Ms::Instrument::shortNames | ( | ) | const |
QList< StaffName > & Ms::Instrument::shortNames | ( | ) |
|
inline |
|
inline |
void Ms::Instrument::switchExpressive | ( | MasterScore * | score, |
Synthesizer * | synth, | ||
bool | expressive, | ||
bool | force = false |
||
) |
QString Ms::Instrument::trackName | ( | ) | const |
|
inline |
void Ms::Instrument::updateGateTime | ( | int * | gateTime, |
int | channelIdx, | ||
const QString & | name | ||
) |
void Ms::Instrument::updateVelocity | ( | int * | velocity, |
int | channel, | ||
const QString & | name | ||
) |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |