2 * Copyright (C) 2006 Paul Davis
3 * Copyright (C) 2007 Michael Taht
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 #define __STDC_FORMAT_MACROS
31 #if HAVE_TRANZPORT_KERNEL_DRIVER
36 #include <pbd/pthread_utils.h>
38 #include <ardour/route.h>
39 #include <ardour/audio_track.h>
40 #include <ardour/session.h>
41 #include <ardour/tempo.h>
42 #include <ardour/location.h>
43 #include <ardour/dB.h>
45 #include <tranzport_control_protocol.h>
47 using namespace ARDOUR;
54 #include <pbd/abstract_ui.cc>
57 TranzportControlProtocol::next_wheel_shift_mode ()
59 switch (wheel_shift_mode) {
61 wheel_shift_mode = WheelShiftPan;
64 wheel_shift_mode = WheelShiftMaster;
66 case WheelShiftMaster:
67 wheel_shift_mode = WheelShiftGain;
69 case WheelShiftMarker: // Not done yet, disabled
70 wheel_shift_mode = WheelShiftGain;
78 TranzportControlProtocol::next_wheel_mode ()
82 wheel_mode = WheelScrub;
85 wheel_mode = WheelShuttle;
88 wheel_mode = WheelTimeline;
95 TranzportControlProtocol::show_wheel_mode ()
99 // if(session->transport_speed() != 0) {
100 // if session-transport_speed() < 1.0) show_big_bar/beat
101 // if ? greater. dont
103 if(session->transport_speed() != 0) {
107 switch (wheel_mode) {
119 switch (wheel_shift_mode) {
128 case WheelShiftMaster:
132 case WheelShiftMarker:
137 print (1, 0, text.c_str());