Browse Source

Add 't' key on timeline to add a tempo point using the current range as the beat length.

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

+ 18
- 0
Timeline/Timeline.C View File

@@ -924,6 +924,24 @@ Timeline::handle ( int m )
redraw();
return 1;
}
case 't':
{
if ( p1 != p2 )
{
if ( p1 > p2 )
{
nframes_t t = p2;
p2 = p1;
p1 = t;
}

beats_per_minute( p1, sample_rate() * 60 / (float)( p2 - p1 ) );

p2 = p1;
}

return 1;
}
default:
return Fl_Overlay_Window::handle( m );
}


Loading…
Cancel
Save