MuseScore  3.4
Music composition and notation
Public Member Functions | Public Attributes | Private Attributes | List of all members
Ms::InstrumentTemplate Class Reference

#include <instrtemplate.h>

Collaboration diagram for Ms::InstrumentTemplate:
Collaboration graph
[legend]

Public Member Functions

 InstrumentTemplate ()
 
 InstrumentTemplate (const InstrumentTemplate &)
 
 ~InstrumentTemplate ()
 
void init (const InstrumentTemplate &)
 
void linkGenre (const QString &)
 
void addGenre (QList< InstrumentGenre *>)
 
bool genreMember (const QString &)
 
void setPitchRange (const QString &s, char *a, char *b) const
 
void write (XmlWriter &xml) const
 
void write1 (XmlWriter &xml) const
 
void read (XmlReader &)
 
int nstaves () const
 
void setStaves (int val)
 
ClefTypeList clefType (int staffIdx) const
 

Public Attributes

QString id
 
QString trackName
 
StaffNameList longNames
 shown on first system More...
 
StaffNameList shortNames
 shown on followup systems More...
 
QString musicXMLid
 used in MusicXML 3.0 More...
 
QString description
 a longer description of the instrument More...
 
char minPitchA
 
char maxPitchA
 
char minPitchP
 
char maxPitchP
 
Interval transpose
 
StaffGroup staffGroup
 
const StaffTypestaffTypePreset
 
bool useDrumset
 
Drumsetdrumset
 
StringData stringData
 
QList< NamedEventListmidiActions
 
QList< MidiArticulationarticulation
 
QList< Channelchannel
 
QList< InstrumentGenre * > genres
 
ClefTypeList clefTypes [MAX_STAVES]
 
int staffLines [MAX_STAVES]
 
BracketType bracket [MAX_STAVES]
 
int bracketSpan [MAX_STAVES]
 
int barlineSpan [MAX_STAVES]
 
bool smallStaff [MAX_STAVES]
 
bool extended
 
bool singleNoteDynamics
 

Private Attributes

int staves
 

Constructor & Destructor Documentation

◆ InstrumentTemplate() [1/2]

Ms::InstrumentTemplate::InstrumentTemplate ( )

◆ InstrumentTemplate() [2/2]

Ms::InstrumentTemplate::InstrumentTemplate ( const InstrumentTemplate t)

◆ ~InstrumentTemplate()

Ms::InstrumentTemplate::~InstrumentTemplate ( )

Member Function Documentation

◆ addGenre()

void Ms::InstrumentTemplate::addGenre ( QList< InstrumentGenre *>  )

◆ clefType()

ClefTypeList Ms::InstrumentTemplate::clefType ( int  staffIdx) const

◆ genreMember()

bool Ms::InstrumentTemplate::genreMember ( const QString &  name)

◆ init()

void Ms::InstrumentTemplate::init ( const InstrumentTemplate t)

◆ linkGenre()

void Ms::InstrumentTemplate::linkGenre ( const QString &  genre)

◆ nstaves()

int Ms::InstrumentTemplate::nstaves ( ) const
inline

◆ read()

void Ms::InstrumentTemplate::read ( XmlReader e)

◆ setPitchRange()

void Ms::InstrumentTemplate::setPitchRange ( const QString &  s,
char *  a,
char *  b 
) const

◆ setStaves()

void Ms::InstrumentTemplate::setStaves ( int  val)
inline

◆ write()

void Ms::InstrumentTemplate::write ( XmlWriter xml) const

◆ write1()

void Ms::InstrumentTemplate::write1 ( XmlWriter xml) const

Member Data Documentation

◆ articulation

QList<MidiArticulation> Ms::InstrumentTemplate::articulation

◆ barlineSpan

int Ms::InstrumentTemplate::barlineSpan[MAX_STAVES]

◆ bracket

BracketType Ms::InstrumentTemplate::bracket[MAX_STAVES]

◆ bracketSpan

int Ms::InstrumentTemplate::bracketSpan[MAX_STAVES]

◆ channel

QList<Channel> Ms::InstrumentTemplate::channel

◆ clefTypes

ClefTypeList Ms::InstrumentTemplate::clefTypes[MAX_STAVES]

◆ description

QString Ms::InstrumentTemplate::description

a longer description of the instrument

◆ drumset

Drumset* Ms::InstrumentTemplate::drumset

◆ extended

bool Ms::InstrumentTemplate::extended

◆ genres

QList<InstrumentGenre*> Ms::InstrumentTemplate::genres

◆ id

QString Ms::InstrumentTemplate::id

◆ longNames

StaffNameList Ms::InstrumentTemplate::longNames

shown on first system

◆ maxPitchA

char Ms::InstrumentTemplate::maxPitchA

◆ maxPitchP

char Ms::InstrumentTemplate::maxPitchP

◆ midiActions

QList<NamedEventList> Ms::InstrumentTemplate::midiActions

◆ minPitchA

char Ms::InstrumentTemplate::minPitchA

◆ minPitchP

char Ms::InstrumentTemplate::minPitchP

◆ musicXMLid

QString Ms::InstrumentTemplate::musicXMLid

used in MusicXML 3.0

◆ shortNames

StaffNameList Ms::InstrumentTemplate::shortNames

shown on followup systems

◆ singleNoteDynamics

bool Ms::InstrumentTemplate::singleNoteDynamics

◆ smallStaff

bool Ms::InstrumentTemplate::smallStaff[MAX_STAVES]

◆ staffGroup

StaffGroup Ms::InstrumentTemplate::staffGroup

◆ staffLines

int Ms::InstrumentTemplate::staffLines[MAX_STAVES]

◆ staffTypePreset

const StaffType* Ms::InstrumentTemplate::staffTypePreset

◆ staves

int Ms::InstrumentTemplate::staves
private

◆ stringData

StringData Ms::InstrumentTemplate::stringData

◆ trackName

QString Ms::InstrumentTemplate::trackName

◆ transpose

Interval Ms::InstrumentTemplate::transpose

◆ useDrumset

bool Ms::InstrumentTemplate::useDrumset

The documentation for this class was generated from the following files: