13#ifndef __partsummary__
14#define __partsummary__
19#include "notevisitor.h"
20#include "timePositions.h"
39class EXP partsummary :
51 partsummary() : fStavesCount(1) {
53 virtual ~partsummary() {};
80 std::map<int, int> fStaffDistances;
85 std::map<int, std::map<std::string, std::map<rational, int>>> fOctavas;
88 virtual void visitStart ( S_part& elt);
89 virtual void visitStart ( S_staves& elt);
90 virtual void visitStart ( S_print& elt);
91 virtual void visitEnd ( S_note& elt);
92 virtual void visitStart ( S_backup& elt );
93 virtual void visitStart ( S_forward& elt );
94 virtual void visitStart ( S_divisions& elt );
95 virtual void visitStart ( S_measure& elt );
96 virtual void visitStart ( S_direction& elt );
102 std::map<int, int> fStaves;
104 std::map<int, int> fVoices;
106 std::map<int, std::map<int, int> > fStaffVoices;
109 std::map<int, rational> fCurrentVoicedMeasurePosition;
112 long fCurrentDivision;
113 S_measure fCurrentMeasure;
115 void moveMeasureTime (
long duration,
int voice);
smartlist< int >::ptr getVoices() const
returns the voices ids list
int getVoiceNotes(int voiceid) const
returns the count of notes on a voice
int getMainStaff(int voiceid) const
returns the id of the staff that contains the more of the voice notes
smartlist< int >::ptr getStaves() const
returns the staff ids list
int countVoices(int staff) const
returns the number of voices on a staff
int countVoices() const
returns the number of voices
Definition partsummary.h:58
smartlist< int >::ptr getVoices(int staff) const
returns the voices ids list for one staff
int countStaves() const
returns the number of staves for the part
Definition partsummary.h:56
int getStaffNotes(int id) const
returns the count of notes on a staff
smartlist< int >::ptr getStaves(int voice) const
returns the staff ids list for one voice
int getVoiceNotes(int staffid, int voiceid) const
returns the count of notes on a voice and a staff
Definition timePositions.h:20
Rational number representation.
Definition rational.h:25