From 40bf4ce82dc15dd5e8666d1d485513e7995e258a Mon Sep 17 00:00:00 2001 From: Mads Kiilerich Date: Fri, 18 Nov 2022 21:20:06 +0100 Subject: [PATCH] temporal: drop nused note_type_as_beats The note_type_as_beats was the only temporal thing using hardcoded value of 1920. It seems like it just should use the usual Ardour PPQN (aka ticks_per_beat) ... which also has the value 1920. It is however not used after d77db816de2. --- libs/temporal/temporal/tempo.h | 1 - 1 file changed, 1 deletion(-) diff --git a/libs/temporal/temporal/tempo.h b/libs/temporal/temporal/tempo.h index 1d17201e1f..b531fbaa99 100644 --- a/libs/temporal/temporal/tempo.h +++ b/libs/temporal/temporal/tempo.h @@ -220,7 +220,6 @@ class LIBTEMPORAL_API Tempo { void set_note_types_per_minute (double 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;