13#ifndef __partsummary__
14#define __partsummary__
19#include "notevisitor.h"
73 std::map<int, int> fStaffDistances;
76 virtual void visitStart (
S_part& elt);
77 virtual void visitStart (
S_staves& elt);
78 virtual void visitStart (
S_print& elt);
79 virtual void visitEnd (
S_note& elt);
85 std::map<int, int> fStaves;
87 std::map<int, int> fVoices;
89 std::map<int, std::map<int, int> > fStaffVoices;
the smart pointer implementation
Definition: smartpointer.h:58
A note visitor.
Definition: notevisitor.h:86
Produces a summary of a MusicXML part.
Definition: partsummary.h:43
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:51
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:49
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