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