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

TChord Class Reference

a notes container that denotes a chord.

#include <TChord.h>

Inheritance diagram for TChord:

TMusicData visitable smartable List of all members.

Public Types

enum  sorttype { pitch, duration }

Public Member Functions

virtual void accept (TScoreVisitor &visitor)
long add (const SNote &note)
vvector< SNote > & notes ()
unsigned long getDuration () const
 returns the chord duration that is the shortest note duration (or 0 for an empty chord)

long getVoice () const
 returns the voice of the chord notes

long getStaff () const
 returns the staff of the first chord note

TNote::style getStyle () const
 returns the style of the chord notes (normal, cue, grace)

void sort (sorttype type)
 sorts the notes of the chord


Friends

EXP friend SMARTP< TChordnewChord ()

Generated on Tue Mar 23 09:49:57 2004 for LibMusicXML by doxygen 1.3.3