rename TempoMap::cut_time() to remove_time()
Everywhere else, 'cut time' has been renamed to 'remove time': for consistency, rename this one remaining function to match.
This commit is contained in:
parent
5aa834e1d8
commit
94e4e2f55f
@ -7215,7 +7215,7 @@ Editor::remove_time (framepos_t pos, framecnt_t frames, InsertTimeOption opt,
|
||||
if (tempo_too) {
|
||||
XMLNode& before (_session->tempo_map().get_state());
|
||||
|
||||
if (_session->tempo_map().cut_time (pos, frames) ) {
|
||||
if (_session->tempo_map().remove_time (pos, frames) ) {
|
||||
XMLNode& after (_session->tempo_map().get_state());
|
||||
_session->add_command (new MementoCommand<TempoMap>(_session->tempo_map(), &before, &after));
|
||||
commit = true;
|
||||
|
@ -323,7 +323,7 @@ class LIBARDOUR_API TempoMap : public PBD::StatefulDestructible
|
||||
void change_initial_tempo (double bpm, double note_type);
|
||||
|
||||
void insert_time (framepos_t, framecnt_t);
|
||||
bool cut_time (framepos_t where, framecnt_t amount); //returns true if anything was moved
|
||||
bool remove_time (framepos_t where, framecnt_t amount); //returns true if anything was moved
|
||||
|
||||
int n_tempos () const;
|
||||
int n_meters () const;
|
||||
|
@ -1903,7 +1903,7 @@ TempoMap::insert_time (framepos_t where, framecnt_t amount)
|
||||
PropertyChanged (PropertyChange ());
|
||||
}
|
||||
bool
|
||||
TempoMap::cut_time (framepos_t where, framecnt_t amount)
|
||||
TempoMap::remove_time (framepos_t where, framecnt_t amount)
|
||||
{
|
||||
bool moved = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user