From bde6f2c5575f53a830a7f934b3a1d9aaba825568 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Wed, 14 May 2008 15:27:37 -0500 Subject: [PATCH] Add time signature and tempo info to BBT clock. --- Timeline/Clock.H | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Timeline/Clock.H b/Timeline/Clock.H index 33a0111..6b0f9d4 100644 --- a/Timeline/Clock.H +++ b/Timeline/Clock.H @@ -197,6 +197,13 @@ public: snprintf( buf, sizeof( buf ), "%lu", (unsigned long)timeline->sample_rate() ); fl_draw( buf, dx, dy, dw, dh, FL_ALIGN_BOTTOM ); break; + case BBT: + { + /* FIXME: find a way to avoid doing this twice */ + position_info pos = timeline->solve_tempomap( _when ); + snprintf( buf, sizeof( buf ), "%d/%d %5.1f", pos.beats_per_bar, pos.beat_type, pos.tempo ); + fl_draw( buf, dx, dy, dw, dh, FL_ALIGN_BOTTOM ); + } default: break; }