mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-18 20:56:28 +01:00
temporal: fix up some logic relating to scoped tempo maps (GUI)
This commit is contained in:
parent
dd41fddcad
commit
a2c0183cbc
3 changed files with 21 additions and 11 deletions
|
|
@ -402,7 +402,7 @@ AudioClipEditor::drop_waves ()
|
||||||
void
|
void
|
||||||
AudioClipEditor::set_trigger (TriggerReference& tr)
|
AudioClipEditor::set_trigger (TriggerReference& tr)
|
||||||
{
|
{
|
||||||
EC_LOCAL_TEMPO_SCOPE;
|
/* NO LOCAL TEMPO SCOPE */
|
||||||
|
|
||||||
if (tr == ref) {
|
if (tr == ref) {
|
||||||
return;
|
return;
|
||||||
|
|
@ -418,7 +418,7 @@ AudioClipEditor::set_trigger (TriggerReference& tr)
|
||||||
void
|
void
|
||||||
AudioClipEditor::set_region (std::shared_ptr<Region> region)
|
AudioClipEditor::set_region (std::shared_ptr<Region> region)
|
||||||
{
|
{
|
||||||
EC_LOCAL_TEMPO_SCOPE;
|
/* NO LOCAL TEMPO SCOPE */
|
||||||
|
|
||||||
CueEditor::set_region (region);
|
CueEditor::set_region (region);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1158,6 +1158,8 @@ CueEditor::set_track (std::shared_ptr<Track> t)
|
||||||
void
|
void
|
||||||
CueEditor::set_region (std::shared_ptr<Region> r)
|
CueEditor::set_region (std::shared_ptr<Region> r)
|
||||||
{
|
{
|
||||||
|
/* NO LOCAL TEMPO SCOPE HERE */
|
||||||
|
|
||||||
if (r == _region) {
|
if (r == _region) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -1166,13 +1168,17 @@ CueEditor::set_region (std::shared_ptr<Region> r)
|
||||||
|
|
||||||
_region = r;
|
_region = r;
|
||||||
|
|
||||||
std::shared_ptr<TempoMap> tmap = _region->tempo_map();
|
if (_region) {
|
||||||
if (tmap) {
|
std::shared_ptr<TempoMap> tmap = _region->tempo_map();
|
||||||
start_local_tempo_map (tmap);
|
if (tmap) {
|
||||||
}
|
start_local_tempo_map (tmap);
|
||||||
|
}
|
||||||
|
|
||||||
if (!get_canvas()->is_visible()) {
|
if (!get_canvas()->is_visible()) {
|
||||||
_visible_pending_region = r;
|
_visible_pending_region = r;
|
||||||
|
} else {
|
||||||
|
_visible_pending_region.reset ();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
_visible_pending_region.reset ();
|
_visible_pending_region.reset ();
|
||||||
}
|
}
|
||||||
|
|
@ -1212,7 +1218,7 @@ CueEditor::set_from_rsu (RegionUISettings& rsu)
|
||||||
void
|
void
|
||||||
CueEditor::set_trigger (TriggerReference& tref)
|
CueEditor::set_trigger (TriggerReference& tref)
|
||||||
{
|
{
|
||||||
EC_LOCAL_TEMPO_SCOPE;
|
/* NO TEMPO SCOPE */
|
||||||
|
|
||||||
if (tref == ref) {
|
if (tref == ref) {
|
||||||
return;
|
return;
|
||||||
|
|
@ -1399,7 +1405,11 @@ CueEditor::idle_data_captured ()
|
||||||
void
|
void
|
||||||
CueEditor::unset (bool trigger_too)
|
CueEditor::unset (bool trigger_too)
|
||||||
{
|
{
|
||||||
end_local_tempo_map ();
|
/* NO LOCAL TEMPO SCOPE HERE */
|
||||||
|
|
||||||
|
if (_local_tempo_map) {
|
||||||
|
end_local_tempo_map ();
|
||||||
|
}
|
||||||
_history.clear ();
|
_history.clear ();
|
||||||
history_connection.disconnect();
|
history_connection.disconnect();
|
||||||
_update_connection.disconnect();
|
_update_connection.disconnect();
|
||||||
|
|
|
||||||
|
|
@ -1378,7 +1378,7 @@ Pianoroll::region_prop_change (PBD::PropertyChange const & what_changed)
|
||||||
void
|
void
|
||||||
Pianoroll::set_trigger (TriggerReference & tref)
|
Pianoroll::set_trigger (TriggerReference & tref)
|
||||||
{
|
{
|
||||||
EC_LOCAL_TEMPO_SCOPE;
|
/* NO LOCAL TEMPO SCOPE */
|
||||||
|
|
||||||
if (ref == tref) {
|
if (ref == tref) {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue