]> Shamusworld >> Repos - ardour-manual-diverged/blob - include/feedback-in-osc.html
Sync with master branch.
[ardour-manual-diverged] / include / feedback-in-osc.html
1 ---
2 layout: default
3 title: OSC: Feedback
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   the DAW fader will jump to where the controller fader is. Likewise,
11   the buttons on each strip need to know what their value is so they can
12   light their LED correctly. Transport controls should let you know if
13   they are active 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   Where the button release sent to Ardour will be ignored and has no
40   meaning. Both states have meaning in feedback to the controller.
41   The feedback will be:
42 </p>
43
44 <dl class="bindings">
45   <dt><kbd class="osc">/transport_stop <em>state</em></kbd></dt>
46   <dd>where <em>state</em> is an int/bool indicating if the transport is stopped or not.</dd>
47 </dl>
48 <p>
49   With feedback turned on, OSC control commands that try to change a
50   control that does not exist will get feedback that resets that control
51   to off. For example, sending a /strip/recenable to a buss will not work
52   and Ardour will try to turn the controller LED off in that case. Also
53   note that Pan operation may be limited by pan width in some cases.
54   That is with pan width at 100% (or -100%) there is no pan position
55   movement available.
56 </p>
57 <p>
58   It may come as a surprise, but feedback often generates more network
59   traffic than control itself does. Some things are more obvious like
60   head position or meters. But even a simple button push like transport
61   start sends not only a signal to turn on the play LED, but also one to
62   turn off the stop LED, the Rewind LED, the Fast Forward LED and the
63   Loop LED. That is still minor, think instead of a surface refresh
64   such as happens when the surface is first connected and then most of
65   that happens every time the fader strips are banked. This is why
66   feedback is enabled in sections so that as little feedback as is
67   actually needed is sent. This is also a consideration if the surface
68   is connected via wifi.
69 </p>
70 <h2>List of OSC feedback messages</h2>
71
72 <h3>Feedback only</h3>
73 <p>
74   These messages are feedback only. They are sent as status from Ardour
75   and some of them may be enabled separately from other feedback. See:
76   <a href="/using-control-surfaces/controlling-ardour-with-osc/calculating-feedback-and-strip-types-values/">
77   Calculating Feedback and Strip-types Values.</a>
78 </p>
79 <p class="note">
80   See strip section below for info about ssid and wrapping it into the
81   path. Also /master and /monitor support what the /strip does.
82 </p>
83 <p>
84   In the case where Gainmode is set to position, the track name will
85   show the dB value while values are changing.
86 </p>
87 <dl class="bindings">
88   <dt><kbd class="osc">/strip/name <em>ssid</em> <em>track_name</em></kbd></dt>
89   <dd>where <em>track_name</em> is a string representing the name of the track</dd>
90   <dt><kbd class="osc">/session_name <em>session_name</em></kbd></dt>
91   <dd>where <em>session_name</em> is a string representing the name of the session</dd>
92   <dt><kbd class="osc">/strip/meter <em>ssid</em> <em>meter</em></kbd></dt>
93   <dd>where <em>meter</em> is a value repesenting the current audio level.
94   (the exact math used is determined by the feedback bits set)</dd>
95   <dt><kbd class="osc">/strip/signal <em>ssid</em> <em>signal</em></kbd></dt>
96   <dd>where <em>signal</em> is a float indicating the instantaneous
97   audio level is -40dB or higher.</dd>
98   <dt><kbd class="osc">/position/smpte <em>time</em></kbd></dt>
99   <dd>where <em>time</em> is a string with the current play head time. Seconds as per smpte.</dd>
100   <dt><kbd class="osc">/position/bbt <em>beat</em></kbd></dt>
101   <dd>where <em>beat</em> is a string with the current play head bar/beat.</dd>
102   <dt><kbd class="osc">/position/time <em>time</em></kbd></dt>
103   <dd>where <em>time</em> is a string with the current play head time. Seconds are in milliseconds</dd>
104   <dt><kbd class="osc">/position/samples <em>samples</em></kbd></dt>
105   <dd>where <em>samples</em> is a string with the current play head position in samples.</dd>
106   <dt><kbd class="osc">/heartbeat <em>LED</em></kbd></dt>
107   <dd>where <em>LED</em> is a float that cycles 1/0 at 1 second intervals.</dd>
108   <dt><kbd class="osc">/record_tally <em>state</em></kbd></dt>
109   <dd>Some record enable is true or "ready to record". For a "Recording" sign at studio door.</dd>
110 </dl>
111
112 <h3>Transport Control</h3>
113 <dl class="bindings">
114   <dt><kbd class="osc">/transport_stop <em>state</em></kbd></dt>
115   <dd><em>state</em> is true when transport is stopped</dd>
116   <dt><kbd class="osc">/transport_play <em>state</em></kbd></dt>
117   <dd><em>state</em> is true when transport speed is 1.0</dd>
118   <dt><kbd class="osc">/ffwd <em>state</em></kbd></dt>
119   <dd><em>state</em> is true when transport is moving forward but not at speed 1.0</dd>
120   <dt><kbd class="osc">/rewind <em>state</em></kbd></dt>
121   <dd><em>state</em> is true when transport speed is less than 0.0</dd>
122   <dt><kbd class="osc">/loop_toggle <em>state</em></kbd></dt>
123   <dd><em>state</em> is true when loop mode is true</dd>
124   <dt><kbd class="osc">/cancel_all_solos <em>state</em></kbd></dt>
125   <dd>Where <em>state</em> true indicates there are active solos that can be canceled.</dd>
126 </dl>
127
128 <h3>Recording control</h3>
129 <dl class="bindings">
130   <!--dt><kbd class="osc">/toggle_punch_in</kbd></dt>
131   <dd></dd>
132   <dt><kbd class="osc">/toggle_punch_out</kbd></dt>
133   <dd></dd-->
134   <dt><kbd class="osc">/rec_enable_toggle <em>state</em></kbd></dt>
135   <dd>Master record enabled.</dd>
136 </dl>
137
138 <h3>Master and monitor strips</h3>
139 <p>
140   Master and monitor strips are similar to track strips but do not use
141   the SSID. Rather they use their name as part of the path:
142 </p>
143 <dl class="bindings">
144   <dt><kbd class="osc">/master/gain <em>dB</em></kbd></dt>
145   <dd>where <em>dB</em> is a float ranging from -193 to +6 representing the actual gain of master in dB</dd>
146   <dt><kbd class="osc">/master/fader  <em>position</em></kbd></dt>
147   <dd>where <em>position</em> is an int ranging from 0 to 1023 representing the fader control position</dd>
148   <dt><kbd class="osc">/master/trimdB <em>dB</em></kbd></dt>
149   <dd>where <em>dB</em> is a float ranging from -20 to +20 representing the actual trim for master in dB</dd>
150   <dt><kbd class="osc">/master/pan_stereo_position <em>position</em></kbd></dt>
151   <dd>where <em>position</em> is a float ranging from 0 to 1 representing the actual pan position for master</dd>
152   <dt><kbd class="osc">/master/mute  <em>yn</em></kbd></dt>
153   <dd>where <em>yn</em> is a bool/int representing the actual mute state of the Master strip</dd>
154   <dt><kbd class="osc">/monitor/gain <em>dB</em></kbd></dt>
155   <dd>where <em>dB</em> is a float ranging from -193 to 6 representing the actual gain of monitor in dB</dd>
156   <dt><kbd class="osc">/monitor/fader  <em>position</em></kbd></dt>
157   <dd>where <em>position</em> is an int ranging from 0 to 1023 representing the fader control position</dd>
158 </dl>
159
160 <h3>Track specific operations</h3>
161 <p>
162   For each of the following, <em>ssid</em> is the surface strip ID for the track
163 </p>
164 <p class="note">
165   Some Surfaces (many Android applets) are not able to deal with more
166   than one parameter in a command. However, the two parameter commands
167   below can also be sent as /strip/command/ssid param. Feedback can be
168   set to match this with the /set_surface/feedback <em>state</em>
169   command. See <a
170   href="/using-control-surfaces/controlling-ardour-with-osc/calculating-feedback-and-strip-types-values/">
171   Calculating Feedback and Strip-types Values.</a>
172 </p>
173
174 <dl class="bindings">
175   <dt><kbd class="osc">/bank_up <em>LED</em></kbd></dt>
176   <dd>where <em>LED</em> is a bool that indicates another bank_up operation is possible.</dd>
177   <dt><kbd class="osc">/bank_down <em>LED</em></kbd></dt>
178   <dd>where <em>LED</em> is a bool that indicates another bank_down operation is possible.</dd>
179   <dt><kbd class="osc">/strip/name <em>ssid</em> <em>track_name</em></kbd></dt>
180   <dd>where <em>track_name</em> is a string representing the name of the track
181   (note there is no coresponding command to set the track name)</dd>
182   <dt><kbd class="osc">/strip/mute <em>ssid</em> <em>mute_st</em></kbd></dt>
183   <dd>where <em>mute_st</em> is a bool/int representing the actual mute state of the track</dd>
184   <dt><kbd class="osc">/strip/solo <em>ssid</em> <em>solo_st</em></kbd></dt>
185   <dd>where <em>solo_st</em> is a bool/int representing the actual solo state of the track</dd>
186   <dt><kbd class="osc">/strip/monitor_input <em>ssid</em> <em>monitor_st</em></kbd></dt>
187   <dd>where <em>monitor_st</em> is a bool/int. True/1 meaning the track is force to monitor input</dd>
188   <dt><kbd class="osc">/strip/monitor_disk <em>ssid</em> <em>monitor_st</em></kbd></dt>
189   <dd>where <em>monitor_st</em> is a bool/int. True/1 meaning the track is force to monitor disk,
190   where both disk and input are false/0, auto monitoring is used.</dd>
191   <dt><kbd class="osc">/strip/recenable <em>ssid</em> <em>rec_st</em></kbd></dt>
192   <dd>where <em>rec_st</em> is a bool/int representing the actual rec state of the track</dd>
193   <dt><kbd class="osc">/strip/record_safe <em>ssid</em> <em>rec_st</em></kbd></dt>
194   <dd>where <em>rec_st</em> is a bool/int representing the actual record safe state of the track</dd>
195   <dt><kbd class="osc">/strip/gain <em>ssid</em> <em>gain</em></kbd></dt>
196   <dd>where <em>gain</em> is a float ranging from -193 to 6 representing the actual gain of the track in dB.</dd>
197   <dt><kbd class="osc">/strip/fader <em>ssid</em>  <em>position</em></kbd></dt>
198   <dd>where <em>position</em> is an float ranging from 0 to 1 representing the actual fader position of the track.</dd>
199   <dt><kbd class="osc">/strip/trimdB <em>ssid</em>  <em>trim_db</em></kbd></dt>
200   <dd>where <em>trim_db</em> is a float ranging from -20 to 20 representing the actual trim of the track in dB.</dd>
201   <dt><kbd class="osc">/strip/pan_stereo_position <em>ssid</em> <em>position</em></kbd></dt>
202   <dd>where <em>position</em> is a float ranging from 0 to 1 representing the actual pan position of the track</dd>
203 </dl>
204 <h3>Selection Operations</h3>
205 <p>
206   Selection feedback is the same as for strips, only the path changes
207   from <em>/strip</em> to <em>/select</em> and there is no <em>ssid</em>.
208   there are some extra feedback and commands that will be listed here.
209 </p>
210 <dl class="bindings">
211   <dt><kbd class="osc">/select/n_inputs <em>number</em></kbd></dt>
212   <dd>where <em>number</em> number of inputs for this strip</dd>
213   <dt><kbd class="osc">/select/n_outputs <em>number</em></kbd></dt>
214   <dd>where <em>number</em> number of outputs for this strip</dd>
215   <dt><kbd class="osc">/select/comment <em>text</em></kbd></dt>
216   <dd>where <em>text</em> is the strip comment</dd>
217   <dt><kbd class="osc">/select/solo_iso <em>state</em></kbd></dt>
218   <dd>where <em>state</em> is a bool/int representing the Actual solo isolate state of the track</dd>
219   <dt><kbd class="osc">/select/solo_safe <em>state</em></kbd></dt>
220   <dd>where <em>state</em> is a bool/int representing the actual solo safe/lock state of the track</dd>
221   <dt><kbd class="osc">/select/polarity <em>invert</em></kbd></dt>
222   <dd>where <em>invert</em> is a bool/int representing the actual polarity of the track</dd>
223   <dt><kbd class="osc">/select/pan_stereo_width <em>width</em></kbd></dt>
224   <dd>where <em>width</em> is a float ranging from 0 to 1 representing the actual pan width of the track</dd>
225   <dt><kbd class="osc">/select/send_gain", <em>sendid</em> <em>send_gain</em></kbd></dt>
226   <dd>where <em>sendid</em> = nth_send, <em>send_gain</em>is a float
227   ranging from -193 to +6 representing the actual gain in dB for the send</dd>
228   <dt><kbd class="osc">/select/send_fader", <em>sendid</em> <em>send_gain</em></kbd></dt>
229   <dd>where <em>sendid</em> = nth_send, <em>send_gain</em>is a float
230   ranging from 0 to 1 representing the actual position for the send as a fader</dd>
231   <dt><kbd class="osc">/select/send_name <em>sendid</em> <em>send_name</em></kbd></dt>
232   <dd>where <em>send_name</em> is a string representing the name of the buss
233   this send goes to.</dd>
234 </dl>
235 <h3>Menu actions</h3>
236 <p>
237   Every single menu item in Ardour's GUI is accessible via OSC. However,
238   there is no provision for returning the state of anything set this way.
239   This is not a bad thing as most menu items either do not have an on/off
240   state or that state is quite visible. Binding that affect other parameters
241   that OSC does track will show on those OSC controls. Examples of this
242   might be track record enable for tracks 1 to 32, play or stop.
243 </p>