projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbbb874
)
centralize computation of tempo from SMF information
author
Paul Davis
<paul@linuxaudiosystems.com>
Wed, 8 Feb 2017 18:07:10 +0000
(19:07 +0100)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Wed, 8 Feb 2017 18:07:10 +0000
(19:07 +0100)
libs/evoral/evoral/SMF.hpp
patch
|
blob
|
history
diff --git
a/libs/evoral/evoral/SMF.hpp
b/libs/evoral/evoral/SMF.hpp
index f0757929bdea0e80ce95bb6d5f83a44259ee5997..83987910583605f85571b17b135e948daf7b25c5 100644
(file)
--- a/
libs/evoral/evoral/SMF.hpp
+++ b/
libs/evoral/evoral/SMF.hpp
@@
-112,6
+112,10
@@
public:
, clocks_per_click (-1)
, notes_per_note (-1) {}
Tempo (smf_tempo_t*);
+
+ double tempo() const {
+ return 60.0 * (1000000.0 / (double) microseconds_per_quarter_note);
+ }
};
Tempo* tempo_at_smf_pulse (size_t smf_pulse) const;