summaryrefslogtreecommitdiff
path: root/muse2/muse/arranger/tlist.cpp
diff options
context:
space:
mode:
authorRobert Jonsson <spamatica@gmail.com>2012-12-29 15:47:30 +0000
committerRobert Jonsson <spamatica@gmail.com>2012-12-29 15:47:30 +0000
commit6e5e3f9216120582e25f032c1626f670355dd604 (patch)
tree2b0fe6f9ed3502d962e0f9a43eb4b1b5f2cf7dba /muse2/muse/arranger/tlist.cpp
parent097a5219543b09ae11b27ccba2cea7a66bf369d2 (diff)
write automation paramters names
Diffstat (limited to 'muse2/muse/arranger/tlist.cpp')
-rw-r--r--muse2/muse/arranger/tlist.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/muse2/muse/arranger/tlist.cpp b/muse2/muse/arranger/tlist.cpp
index cbc1614f..262527a9 100644
--- a/muse2/muse/arranger/tlist.cpp
+++ b/muse2/muse/arranger/tlist.cpp
@@ -1446,7 +1446,18 @@ void TList::changeAutomation(QAction* act)
if (id == cl->id()) // got it, change state
cl->setVisible(act->isChecked());
}
- MusEGlobal::song->update(SC_TRACK_MODIFIED);
+
+ // if automation is OFF for the track we change it to READ as a convenience
+ // hopefully this confuses users far less than not understanding why the
+ // automation does not do anything.
+ if (((MusECore::AudioTrack*)editAutomation)->automationType() == AUTO_OFF)
+ {
+ MusEGlobal::audio->msgSetTrackAutomationType((MusECore::AudioTrack*)editAutomation, AUTO_READ);
+ if (MusEGlobal::debugMsg)
+ printf("Changing automation from OFF to READ\n");
+ }
+
+ MusEGlobal::song->update(SC_TRACK_MODIFIED|SC_AUTOMATION);
}
//---------------------------------------------------------