add "fade range" operation, bound to alt-f at present by default
[ardour.git] / gtk2_ardour / editor_ops.cc
index a2f8048fec8931a09b8efd994326aa1d3c27981d..eb5b22ee62d7168fccb3764793bcfb55742614ce 100644 (file)
@@ -5260,6 +5260,22 @@ Editor::toggle_solo_isolate ()
 {
 }
 
+
+void
+Editor::fade_range ()
+{
+       TrackViewList ts = selection->tracks.filter_to_unique_playlists ();
+
+       begin_reversible_command (_("fade range"));
+
+       for (TrackViewList::iterator i = ts.begin(); i != ts.end(); ++i) {
+               (*i)->fade_range (selection->time);
+       }
+
+       commit_reversible_command ();
+}
+
+
 void
 Editor::set_fade_length (bool in)
 {