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

SortedNotes Class Reference
[Core Musical Objects]

#include <SortedNotes.h>

List of all members.

Public Member Functions

void append (NoteMusic *)
void setUTFactor (int)
int getUTFactor ()
void sort ()
int getLocalNumerator ()
void setLocalNumerator (int)
QPtrList< NoteMusicduplicateNotes ()
QString toString ()

Protected Member Functions

int compareItems (QPtrCollection::Item d1, QPtrCollection::Item d2)

Protected Attributes

int localNumerator
int UTFactor


Detailed Description

This class stores note by the time they appear in the measure.

It also performs various opertaion for example, it build the voices. The sorting is applying only to a measure. And is not valuable for the whole score.


Member Function Documentation

void SortedNotes::append NoteMusic nm  ) 
 

This method overide its ancestor to set the UTFactor of the note added

int SortedNotes::compareItems QPtrCollection::Item  d1,
QPtrCollection::Item  d2
[protected]
 

Whith this method we can sort notes by time

If a note is a grace note then it comes before in anycase

QPtrList< NoteMusic > SortedNotes::duplicateNotes  ) 
 

this method duplicate the list of note

int SortedNotes::getLocalNumerator  ) 
 

Returns:
the local numerator

void SortedNotes::setLocalNumerator int  pi  ) 
 

Sets the local Numerator

void SortedNotes::setUTFactor int  utf  ) 
 

This sets the ut factor of all the notes in the sorted notes

Parameters:
utf The UT factor

void SortedNotes::sort  ) 
 

sort the notes.

QString SortedNotes::toString  ) 
 

Returns:
the string representation of the vector


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