projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bbcc0e
)
add Meter::operator==.
author
nick_m
<mainsbridge@gmail.com>
Wed, 4 Jan 2017 16:48:35 +0000
(
03:48
+1100)
committer
nick_m
<mainsbridge@gmail.com>
Wed, 4 Jan 2017 16:48:35 +0000
(
03:48
+1100)
libs/ardour/ardour/tempo.h
patch
|
blob
|
history
diff --git
a/libs/ardour/ardour/tempo.h
b/libs/ardour/ardour/tempo.h
index 6c760958db2d226808694d4eadec3601f7f41e24..bd940f991a6fcbb871d0c853211d45d124316d92 100644
(file)
--- 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