mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 07:27:44 +01:00
temporal: add Tempo::note_type_as_beats()
This commit is contained in:
parent
d4c1d3e681
commit
8972ed1517
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue