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

VoiceMC Class Reference
[Core Musical Objects]

#include <VoiceMC.h>

List of all members.

Public Member Functions

 VoiceMC (int)
int getId ()
int potentialPitch ()
QString toString ()

Protected Member Functions

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


Detailed Description

This class hold the structure for a voice.


Constructor & Destructor Documentation

VoiceMC::VoiceMC int  pid  ) 
 

Parameters:
id the autocomputed voice ID, be carefull it is replaced by the note VoiceId if it is not undefined


Member Function Documentation

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

Whith this method we can sort notes by time

int VoiceMC::getId  ) 
 

Returns:
the id a voice, it is computed with the id of a note in the measure if undefined (-1) we use the id setted in the construction

int VoiceMC::potentialPitch  ) 
 

This is an advanced function to determine if a voice is more upper voice or the lower voice this serve to place rests in case of collision


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