temporal: add Tempo::note_type_as_beats()

This commit is contained in:
Paul Davis 2021-11-17 08:55:25 -07:00
parent d4c1d3e681
commit 8972ed1517
1 changed files with 1 additions and 0 deletions

View File

@ -218,6 +218,7 @@ class LIBTEMPORAL_API Tempo : public Rampable {
void set_note_types_per_minute (double npm) { _superclocks_per_note_type = double_npm_to_scpn (npm); }
int note_type () const { return _note_type; }
Beats note_type_as_beats () const { return Beats (0, (1920 * 4) / _note_type); }
superclock_t superclocks_per_note_type () const {
return _superclocks_per_note_type;