8 #ifndef __VRV_TRANSPOSEFUNCTOR_H__
9 #define __VRV_TRANSPOSEFUNCTOR_H__
40 void SetTransposition(
const std::string &transposition) { m_transposition = transposition; }
46 FunctorCode VisitHarm(Harm *harm)
override;
47 FunctorCode VisitKeySig(KeySig *keySig)
override;
48 FunctorCode VisitMdiv(Mdiv *mdiv)
override;
49 FunctorCode VisitNote(Note *note)
override;
50 FunctorCode VisitRest(Rest *rest)
override;
51 FunctorCode VisitScore(Score *score)
override;
52 FunctorCode VisitStaffDef(StaffDef *staffDef)
override;
60 const KeySig *GetKeySigForStaffDef(
const StaffDef *staffDef)
const;
61 int GetStaffNForKeySig(
const KeySig *keySig)
const;
70 Transposer *m_transposer;
72 std::map<int, const KeySig *> m_keySigForStaffN;
76 std::string m_transposition;
104 void SetSelectedMdivID(
const std::string &selectedID) { m_selectedMdivID = selectedID; }
110 FunctorCode VisitMdiv(Mdiv *mdiv)
override;
111 FunctorCode VisitPageMilestone(PageMilestoneEnd *pageMilestoneEnd)
override;
112 FunctorCode VisitScore(Score *score)
override;
113 FunctorCode VisitSystem(System *system)
override;
124 std::string m_selectedMdivID;
126 std::list<std::string> m_currentMdivIDs;
155 FunctorCode VisitMdiv(
Mdiv *mdiv)
override;
156 FunctorCode VisitScore(
Score *score)
override;
157 FunctorCode VisitScoreDef(
ScoreDef *scoreDef)
override;
158 FunctorCode VisitScoreDefEnd(
ScoreDef *scoreDef)
override;
159 FunctorCode VisitStaff(
Staff *staff)
override;
160 FunctorCode VisitStaffDef(
StaffDef *staffDef)
override;
167 void UpdateTranspositionFromStaffN(
const AttNInteger *staffN);
173 std::map<int, int> m_transposeIntervalForStaffN;
178 #endif // __VRV_TRANSPOSEFUNCTOR_H__