]> Shamusworld >> Repos - ardour-manual/blob - _manual/22_using-control-surfaces/01_controlling-ardour-with-osc/02_feedback-in-osc.html
84445e05c9ca970f78bafae4b41b747dc6d08488
[ardour-manual] / _manual / 22_using-control-surfaces / 01_controlling-ardour-with-osc / 02_feedback-in-osc.html
1 ---
2 layout: default
3 title: OSC Feedback With Ardour
4 ---                        
5   
6 <p>
7   Feedback from the Ardour to the the control surface is very useful for
8   a number of things. Motor faders need to know where the the track
9   they have been attached to is at before they were assigned otherwise
10   they will jump to where the local fader is. Likewise, the buttons on
11   each strip need to know what there value is so they can light there LED
12   correctly. Transport controls should let you know if they are active
13   too. This is what feedback is all about.
14 </p>
15 <p>
16   Ardour does feedback by sending the same path back that is used to
17   control the same function. As such any controls that have feedback
18   have a parameter that is the value of the control or it's state
19   (on or off). In the case of OSC paths listed on the main OSC page
20   as having no parameter, if they have feedback, they will also work
21   with a 1 for button press and 0 for button release. This is because
22   many OSC controllers will only use exactly the same path for feedback
23   as for control. For example:
24 </p>
25
26 <dl class="bindings">
27   <dt><kbd class="osc">/transport_stop</kbd></dt>
28   <dd></dd>
29 </dl>
30 <p>can be used also in the form:</p>
31
32 <dl class="bindings">
33   <dt><kbd class="osc">/transport_stop <em>press</em></kbd></dt>
34   <dd>where <em>press</em> is an int/bool indicating if the button is pressed or not.</dd>
35 </dl>
36
37 <p>
38   The feedback does not have the same meaning as the control message.
39   Rather, the feedback will be:
40 </p>
41
42 <dl class="bindings">
43   <dt><kbd class="osc">/transport_stop <em>state</em></kbd></dt>
44   <dd>where <em>state</em> is an int/bool indicating if the transport is stopped or not.</dd>
45 </dl>
46
47 <h2>List of OSC feedback messages</h2>
48
49 <h3>Transport Control</h3>
50 <dl class="bindings">
51   <dt><kbd class="osc">/transport_stop <em>state</em></kbd></dt>
52   <dd></dd>
53   <dt><kbd class="osc">/transport_play <em>state</em></kbd></dt>
54   <dd></dd>
55   <dt><kbd class="osc">/ffwd <em>state</em></kbd></dt>
56   <dd></dd>
57   <dt><kbd class="osc">/rewind <em>state</em></kbd></dt>
58   <dd></dd>
59   <!--dt><kbd class="osc">/loop_toggle</kbd></dt>
60   <dd></dd-->
61 </dl>
62
63
64 <h3>Recording control</h3>
65 <dl class="bindings">
66   <!--dt><kbd class="osc">/toggle_punch_in</kbd></dt>
67   <dd></dd>
68   <dt><kbd class="osc">/toggle_punch_out</kbd></dt>
69   <dd></dd-->
70   <dt><kbd class="osc">/rec_enable_toggle <em>state</em></kbd></dt>
71   <dd></dd>
72 </dl>
73
74 <h3>Master and monitor strips</h3>
75 <p>
76   Master and monitor strips are similar to track strips but do not use
77   the SSID. Rather they use their name as part of the path:
78 </p>
79 <dl class="bindings">
80   <dt><kbd class="osc">/master/gain <em>dB</em></kbd></dt>
81   <dd>where <em>dB</em> is a float ranging from -193 to +6 representing the actual gain of master in dB</dd>
82   <dt><kbd class="osc">/master/fader  <em>position</em></kbd></dt>
83   <dd>where <em>position</em> is an int ranging from 0 to 1023 representing the fader control position</dd>
84   <dt><kbd class="osc">/master/trimdB <em>dB</em></kbd></dt>
85   <dd>where <em>dB</em> is a float ranging from -20 to +20 representing the actual trim for master in dB</dd>
86   <dt><kbd class="osc">/master/pan_stereo_position <em>position</em></kbd></dt>
87   <dd>where <em>position</em> is a float ranging from 0 to 1 representing the actual pan position for master</dd>
88   <dt><kbd class="osc">/master/mute  <em>yn</em></kbd></dt>
89   <dd>where <em>yn</em> is a bool/int representing the actual mute state of the Master strip</dd>
90   <dt><kbd class="osc">/monitor/gain <em>dB</em></kbd></dt>
91   <dd>where <em>dB</em> is a float ranging from -193 to 6 representing the actual gain of monitor in dB</dd>
92   <dt><kbd class="osc">/monitor/fader  <em>position</em></kbd></dt>
93   <dd>where <em>position</em> is an int ranging from 0 to 1023 representing the fader control position</dd>
94 </dl>
95
96 <h3>Track specific operations</h3>
97 <p>
98   For each of the following, <em>ssid</em> is the surface strip ID for the track
99 </p>
100 <dl class="bindings">
101   <dt><kbd class="osc">/strip/name <em>ssid</em> <em>track_name</em></kbd></dt>
102   <dd>where <em>track_name</em> is a string representing the name of the track 
103   (note there is no coresponding command to set the track name)</dd>
104   <dt><kbd class="osc">/strip/mute <em>ssid</em> <em>mute_st</em></kbd></dt>
105   <dd>where <em>mute_st</em> is a bool/int representing the actual mute state of the track</dd>
106   <dt><kbd class="osc">/strip/solo <em>ssid</em> <em>solo_st</em></kbd></dt>
107   <dd>where <em>solo_st</em> is a bool/int representing the actual solo state of the track</dd>
108   <dt><kbd class="osc">/strip/recenable <em>ssid</em> <em>rec_st</em></kbd></dt>
109   <dd>where <em>rec_st</em> is a bool/int representing the actual rec state of the track</dd>
110   <dt><kbd class="osc">/strip/gain <em>ssid</em> <em>gain</em></kbd></dt>
111   <dd>where <em>gain</em> is a float ranging from -193 to 6 representing the actual gain of the track in dB.</dd>
112   <dt><kbd class="osc">/strip/fader <em>ssid</em>  <em>position</em></kbd></dt>
113   <dd>where <em>position</em> is an int ranging from 0 to 1023 representing the actual gain of the track in dB.</dd>
114   <dt><kbd class="osc">/strip/trimdB <em>ssid</em>  <em>trim_db</em></kbd></dt>
115   <dd>where <em>trim_db</em> is a float ranging from -20 to 20 representing the actual trim of the track in dB.</dd>
116   <dt><kbd class="osc">/strip/pan_stereo_position <em>ssid</em> <em>position</em></kbd></dt>
117   <dd>where <em>position</em> is a float ranging from 0 to 1 representing the actual pan position of the track</dd>
118 </dl>
119
120 <h3>Menu actions</h3>
121 <p>
122   Every single menu item in Ardour's GUI is accessible via OSC. However,
123   there is no provision for returning the state of anything set this way.
124   This is not a bad thing as most menu items either do not have an on/off
125   state or that state is quite visible. Binding that affect other parameters
126   that OSC does track will show on those OSC controls. Examples of this
127   might be track record enable for tracks 1 to 32, play or stop.
128 </p>