Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | Related Pages

ScoreMusic Class Reference
[Core Musical Objects]

#include <Score.h>

Inheritance diagram for ScoreMusic:

MusicObject List of all members.

Public Member Functions

void appendPart (PartMusic *)
PartMusicgetPart (QString)
int getLen ()
QList< PartMusicgetParts ()
StaffMusicgetStaffAt (QString npart, int nmeasure, int nstaff)
int getNbStaves ()
void print ()
QString getWorkTitle ()
void addCreator (CreatorMC *)
QPtrList< CreatorMCgetCreators ()
void setWorkTitle (QString)
void setWorkNumber (QString)
QString getWorkNumber ()
QList< MeasureMusicgetMeasureAtSection (int)
MeasureMusicgetMeasureAt (QString npart, int nmeasure)

Detailed Description

This class represent a score-partwise Score"partwise" are divided into en parts. This object is passed to the container. It represent the root note of the MC structure.


Member Function Documentation

void ScoreMusic::addCreator CreatorMC creator  ) 
 

This add a creator

Parameters:
creator the creator to add

void ScoreMusic::appendPart PartMusic p  ) 
 

This append a part to the score once all the part is constructed, we compute the notes in beetween of the slurs This also set the vector common numrator that gives a common time measurement for all the parts. Because MusicXML allow those time measurement to be different.

QPtrList< CreatorMC > ScoreMusic::getCreators  ) 
 

return the creator list

int ScoreMusic::getLen  ) 
 

Returns:
the maximum number of measure contained in a part

MeasureMusic * ScoreMusic::getMeasureAt QString  partid,
int  nmeasure
 

Parameters:
partid The number of the part
nmeausre The number of the measure
nstafp The number of the staff
Returns:
A staff

QList< MeasureMusic > ScoreMusic::getMeasureAtSection int  measureSection  ) 
 

Parameters:
measureSection index of the Measure Section
Returns:
a list of measure at measure section measureSection
*

int ScoreMusic::getNbStaves  ) 
 

To make a graphical representation we need to compute the total number of staves This information is supposed not to change in the whole score (at first !) so we will compute this value for the first music section

Returns:
the total height in staves, the graphical Manager will need this to contruct the associated objects

PartMusic * ScoreMusic::getPart QString  pid  ) 
 

Returns:
the Part corresponding to the id

QList< PartMusic > ScoreMusic::getParts  ) 
 

Returns:
the part list

StaffMusic * ScoreMusic::getStaffAt QString  partid,
int  nmeasure,
int  nstaff
 

Parameters:
partid The number of the part
nmeasure The number of the measure
nstafp The number of the staff
Returns:
A staff

QString ScoreMusic::getWorkNumber  ) 
 

get the work number

Returns:
the work number

QString ScoreMusic::getWorkTitle  ) 
 

get the work title

Returns:
the work title

void ScoreMusic::print  ) 
 

Prints the score reimplement this function into a to string function

void ScoreMusic::setWorkNumber QString  s  ) 
 

set the work number

Parameters:
s the work title

void ScoreMusic::setWorkTitle QString  s  ) 
 

set the work title

Parameters:
s the work title


The documentation for this class was generated from the following files:
Generated on Tue Jun 1 21:13:36 2004 for Alternate Take by doxygen 1.3.6