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

StaffMusic Class Reference

#include <StaffMC.h>

Inheritance diagram for StaffMusic:

MusicObject List of all members.

Public Member Functions

 StaffMusic (QString part, int i)
void appendNote (NoteMusic *)
int nbNotes ()
NoteMusicnoteAt (int)
int getLineShift (PitchedNoteMusic *)
void print ()

Public Attributes

QString part

Detailed Description

This class represent a staff a staff is then composed of a serie of NoteMusic there is in this class a cross refernece that I didnt manage to supress (For those founds about thos kind of challenge ;-) )


Constructor & Destructor Documentation

StaffMusic::StaffMusic QString  pa,
int  n
 

Parameters:
pa the part id it belong to
n the indice of the part in the measure The fatory bject is duplicated. This may be a good idea if this object were placed in the main container and shared by all the sub widget.
*


Member Function Documentation

void StaffMusic::appendNote NoteMusic m  ) 
 

void StaffMusic::setAttributes(AttributesMusic * att){ attributes=att; hasAttributes=true; printf("StaffMusic::setAttributes %d\n",att->size());

}

AttributesMusic * StaffMusic::getAttributes(){ if (hasAttributes==true){ Tracer::printInfo("StaffMusic::getAttributes "+QString::number(attributes->size())); return attributes; } else{ Tracer::printErr("Attention il n'y a pas d'attributs"); return new AttributesMusic(); } }

void StaffMusic::print  ) 
 

For a debugging purpose


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