diff options
author | nick_m <mainsbridge@gmail.com> | 2017-01-05 03:48:35 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2017-01-05 03:48:35 +1100 |
commit | 7674ef1c2c3d25862cb0841fd0ea1dcb76b83a3f (patch) | |
tree | 873d85bcda667dc63a9b2431de26e8e376bde617 /libs/ardour/ardour/tempo.h | |
parent | 9bbcc0e5d9fd420225f19db76f865d633b935253 (diff) |
add Meter::operator==.
Diffstat (limited to 'libs/ardour/ardour/tempo.h')
-rw-r--r-- | libs/ardour/ardour/tempo.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/ardour/ardour/tempo.h b/libs/ardour/ardour/tempo.h index 6c760958db..bd940f991a 100644 --- a/libs/ardour/ardour/tempo.h +++ b/libs/ardour/ardour/tempo.h @@ -95,6 +95,9 @@ class LIBARDOUR_API Meter { double frames_per_bar (const Tempo&, framecnt_t sr) const; double frames_per_grid (const Tempo&, framecnt_t sr) const; + inline bool operator==(const Meter& other) + { return _divisions_per_bar == other.divisions_per_bar() && _note_type == other.note_divisor(); } + protected: /** The number of divisions in a bar. This is a floating point value because there are musical traditions on our planet that do not limit |