diff --git a/libs/ardour/ardour/region.h b/libs/ardour/ardour/region.h index abfe9c1b07..ea0f9cd248 100644 --- a/libs/ardour/ardour/region.h +++ b/libs/ardour/ardour/region.h @@ -545,7 +545,9 @@ public: } Temporal::Tempo tempo() const { return _tempo; } + void set_tempo (Temporal::Tempo const &); Temporal::Meter meter() const { return _meter; } + void set_meter (Temporal::Meter const &); protected: virtual XMLNode& state () const; diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc index 6da010e635..1fbdf5b5f1 100644 --- a/libs/ardour/region.cc +++ b/libs/ardour/region.cc @@ -2508,3 +2508,21 @@ Region::fx_tail_changed (bool) } _fx_tail = t; } + +void +Region::set_tempo (Temporal::Tempo const & t) +{ + if (_tempo != t) { + _tempo = t; + send_change (Properties::region_tempo); + } +} + +void +Region::set_meter (Temporal::Meter const & m) +{ + if (_meter != m) { + _meter = m; + send_change (Properties::region_meter); + } +}