13
0

centralize computation of tempo from SMF information

This commit is contained in:
Paul Davis 2017-02-08 19:07:10 +01:00
parent bbbb874c03
commit 994f5cec0e

View File

@ -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;