Browse Source

Make time points reset the beat count.

tags/non-daw-v1.1.0
Jonathan Moore Liles 17 years ago
parent
commit
d6e8ec3c4a
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      Timeline/Timeline.C

+ 5
- 1
Timeline/Timeline.C View File

@@ -366,6 +366,7 @@ const float ticks_per_beat = 1920.0;
void
Timeline::update_tempomap ( void )
{
/* FIXME: we need some type of locking! */
_tempomap.clear();

for ( list <Sequence_Widget *>::const_iterator i = time_track->_widgets.begin();
@@ -387,11 +388,11 @@ Timeline::solve_tempomap ( nframes_t frame ) const
return render_tempomap( frame, 0, 0, 0 );
}

/* THREAD: UI and RT */
/** draw appropriate measure lines inside the given bounding box */
position_info
Timeline::render_tempomap( nframes_t start, nframes_t length, measure_line_callback * cb, void *arg ) const
{

const nframes_t end = start + length;

position_info pos;
@@ -431,6 +432,9 @@ Timeline::render_tempomap( nframes_t start, nframes_t length, measure_line_callb
const Time_Point *p = (Time_Point*)(*i);

sig = p->time();

/* Time point resets beat */
bbt.beat = 0;
}

{


Loading…
Cancel
Save