8 #ifndef __VRV_DURATION_INTERFACE_H__
9 #define __VRV_DURATION_INTERFACE_H__
12 #include "atts_gestural.h"
13 #include "atts_mensural.h"
14 #include "atts_shared.h"
16 #include "interface.h"
32 public AttAugmentDots,
33 public AttBeamSecondary,
34 public AttDurationGes,
35 public AttDurationLog,
36 public AttDurationQuality,
37 public AttDurationRatio,
38 public AttFermataPresent,
39 public AttStaffIdent {
48 void Reset()
override;
49 InterfaceId
IsInterface()
const override {
return INTERFACE_DURATION; }
55 void SetDurDefault(data_DURATION dur) { m_durDefault = dur; }
57 data_DURATION GetDurDefault()
const {
return m_durDefault; }
73 int num,
int numBase,
const Mensur *currentMensur, data_DURATION equivalence)
const;
78 Fraction DurationWithBrevisEquivalence(
80 int num,
int numBase,
const Mensur *currentMensur, data_DURATION noteDur)
const;
81 Fraction DurationWithSemibrevisEquivalence(
82 int num,
int numBase,
const Mensur *currentMensur, data_DURATION noteDur)
const;
83 Fraction DurationWithMinimaEquivalence(
84 int num,
int numBase,
const Mensur *currentMensur, data_DURATION noteDur)
const;
102 data_DURATION GetActualDur()
const;
104 data_DURATION GetActualDurGes()
const;
129 void SetRealTimeOnsetSeconds(
double timeInSeconds);
130 void SetScoreTimeOffset(Fraction scoreTime);
131 void SetRealTimeOffsetSeconds(
double timeInSeconds);
132 void SetScoreTimeTiedDuration(Fraction timeInSeconds);
133 Fraction GetScoreTimeOnset()
const;
134 double GetRealTimeOnsetMilliseconds()
const;
135 Fraction GetScoreTimeOffset()
const;
136 Fraction GetScoreTimeTiedDuration()
const;
137 double GetRealTimeOffsetMilliseconds()
const;
138 Fraction GetScoreTimeDuration()
const;
155 data_DURATION CalcActualDur(data_DURATION dur)
const;
164 Fraction m_scoreTimeOnset;
174 Fraction m_scoreTimeOffset;
179 double m_realTimeOnsetMilliseconds;
186 double m_realTimeOffsetMilliseconds;
194 Fraction m_scoreTimeTiedDuration;
199 data_DURATION m_durDefault;