summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_ops.cc
diff options
context:
space:
mode:
authorSampo Savolainen <v2@iki.fi>2008-11-01 20:10:56 +0000
committerSampo Savolainen <v2@iki.fi>2008-11-01 20:10:56 +0000
commit43d868cde8bea9932fc828dfd2461b0296bb9135 (patch)
tree0596dd4549c56eb78ba6d6fccb8fa5cf41f5ba13 /gtk2_ardour/editor_ops.cc
parent3043b68bfbcd70ba13d132c8b833cdf3ba199266 (diff)
Wiimote control surface. Bind one wiimote by pressing 1+2 after the surface module is loaded. You need to bind every time you start ardour:
A Toggle play/stop D-pad: Up/Down: scroll tracks in the editor Left/Right: move playhead (nudge) +/- Zoom 1 Arm selected track(s) for recording 2 Toggle recording As an extra, if you press down B and then A to stopp recording pass, Ardour scraps the recorded audio. This is a work in progress. Please test. git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4079 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r--gtk2_ardour/editor_ops.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc
index cc2622cd1c..43dd06780c 100644
--- a/gtk2_ardour/editor_ops.cc
+++ b/gtk2_ardour/editor_ops.cc
@@ -4642,6 +4642,28 @@ Editor::toggle_region_opaque ()
}
void
+Editor::toggle_record_enable ()
+{
+ bool new_state;
+ bool first = true;
+ for (TrackSelection::iterator i = selection->tracks.begin(); i != selection->tracks.end(); ++i) {
+ RouteTimeAxisView *rtav = dynamic_cast<RouteTimeAxisView *>(*i);
+ if (!rtav)
+ continue;
+ if (!rtav->is_track())
+ continue;
+
+ if (first) {
+ new_state = !rtav->track()->record_enabled();
+ first = false;
+ }
+
+ rtav->track()->set_record_enable(new_state, this);
+ }
+}
+
+
+void
Editor::set_fade_length (bool in)
{
RegionSelection rs;