Browse Source

Add time signature and tempo info to BBT clock.

tags/non-daw-v1.1.0
Jonathan Moore Liles 17 years ago
parent
commit
bde6f2c557
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      Timeline/Clock.H

+ 7
- 0
Timeline/Clock.H View File

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


Loading…
Cancel
Save