3 In order to make a custom controller that knows what strips Ardour
4 has, the controller needs to be able to query Ardour for that
5 information. These set of commands are for smarter control surfaces
6 That have the logic to figure out what to do with the information.
7 These are not of value for mapped controllers like touchOSC and
8 friends. The controller will need to send these queries to ardour
9 as often as it needs this information. It may well make sense to use
10 regular feedback for things that need to be updated often such as
12 Here are the commands used to query Ardour: (added in Ardour 5.5)
16 <tr><th><kbd class="osc">/strip/list</kbd></th>
17 <td>Ask for a list of strips</td></tr>
18 <tr><th><kbd class="osc">/strip/sends <em>ssid</em></kbd></th>
19 <td>Asks for a list of sends on the strip <em>ssid</em></td></tr>
20 <tr><th><kbd class="osc">/strip/receives <em>ssid</em></kbd></th>
21 <td>Asks for a list of tracks that have sends to the strip <em>ssid</em> points to</td></tr>
22 <tr><th><kbd class="osc">/strip/plugin/list <em>ssid</em></kbd></th>
23 <td>Asks for a list of plug-ins for strip <em>ssid.</em></td></tr>
24 <tr><th><kbd class="osc">/strip/plugin/descriptor <em>ssid</em> <em>piid</em></kbd></th>
25 <td>Asks for a list of descriptors for plug-in <em>piid</em> on strip <em>ssid</em></td></tr>
26 <tr><th><kbd class="osc">/set_surface</kbd></th>
27 <td>Ask for the current surface setting. Reply is in the same form as setting the surface would be.</td></tr>
30 <h3>A list of strips</h3>
33 <code>/strip/list</code> asks Ardour for a list of strips that the
34 current session has. Ardour replies with a message for each
35 strip with the following information:
37 <li>Strip type - One of:</li>
39 <li>AT - Audio Track</li>
40 <li>MT - MIDI Track</li>
41 <li>B - Audio Bus</li>
42 <li>MB - MIDI bus</li>
47 <li>Number of inputs</li>
48 <li>Number of outputs</li>
51 <li>Ssid (strip number)</li>
52 <li>Record enabled</li>
54 After all the strip messages have been sent, one final message is
57 <li>The text <code>end_route_list</code></li>
58 <li>The session frame rate</li>
59 <li>The last frame number of the session</li>
60 <li>Monitor section present</li>
64 The <code>/set_surface</code> should be set before this is called. That way
65 The right set of strips will be sent in return (though the default is good
66 for most uses) and feedback will start correctly.
69 If the surface is using <code>/strip/list</code>, the surface needs to know
70 if the strips have changed. This would be true if a strip gets moved, created or
71 deleted. When this happens Ardour sends <code>/strip/list</code> to the surfaces
72 that have previously requested a <code>/strip/list</code>. This lets the
73 surface know that it's list of strips is no longer valid.
75 <p class="note">A bus will not have a record enable and so a bus message
76 will have one less parameter than a track. It is the controllers
77 responsability to deal with this.
80 <h3>A list of sends</h3>
82 <code>/strip/sends <em>ssid</em></code> asks Ardour for a list of
83 sends for strip number ssid. The reply is sent back to the
84 controller as one message with the following information:
86 <li>Ssid that information is for</li>
87 <li>Each send's information:</li>
89 <li>The send's target bus ssid</li>
90 <li>The send's target bus name</li>
91 <li>The send id for this strip</li>
92 <li>The send gain as a fader possition</li>
93 <li>The Send's enable state</li>
98 The controller can tell how many sends there are from the number of
99 parameters as each send has 5 parameters and there is one extra for
103 <h3>A list if tracks that send audio to a bus</h3>
105 <code>/strip/receives <em>ssid</em></code> will return a list of
106 tracks that have sends to the bus at the ssid. The reply will
107 contain the following information for each track conntected to this
110 <li>The ssid of the track sending</li>
111 <li>The name of the sending track</li>
112 <li>The id of the send at that track</li>
113 <li>It's gain in fader possition</li>
114 <li>The send's enable state</li>
118 <h3>A list of plug-ins for strip</h3>
120 <code>/strip/plugin/list <em>ssid</em></code> will return a list of
121 plug-ins that strip ssid has. The reply will contain the following
124 <li>Ssid that information is for</li>
125 <li>Each plugin's information:</li>
127 <li>The plug-in's id</li>
128 <li>The plug-in's name</li>
133 <h3>A list of a plug-in's parameters</h3>
135 <code>/strip/plugin/descriptor <em>ssid</em> <em>piid</em></code> will
136 return the plug-in parameters for ppid plug-in on the ssid strip. The
137 reply will be sent as a number of messages, one for each parameter.
138 Each message will contain the following information:
140 <li>Ssid of the strip the plug-in is in</li>
141 <li>The plug-in id for the plug-in</li>
142 <li>The plug-in parameter id for the plug-in</li>
143 <li>The plug-in parameter's name</li>
144 <li>Information about that parameter:</li>
146 <li>A bitset of flags (see below)</li>
148 <li>Minimum value</li>
149 <li>Maximum value</li>
150 <li>The number of scale points</li>
151 <li>zero or more scale points of one value and one string each</li>
152 <li>The current parameter value</li>
157 After all the parameters have been sent this way, one final message"
158 <code>/strip/plugin/descriptor_end</code> is sent with these parameters:
160 <li>Ssid of the strip the pulgin is in</li>
161 <li>The plug-in id for the plug-in</li>
165 The flag bitset above has been defined as (from lsb):
167 <li>0—enumeration</li>
168 <li>1—integer step</li>
169 <li>2—logarithmic</li>
170 <li>5—sample rate dependent</li>
171 <li>6—toggled</li>
172 <li>7—controllable</li>
173 <li>8—hidden</li>
175 Bits 3 and 4 are not used, they were max unbound and min unbound in
176 previous versions and always zero.
179 While this seems complex, it is really not that bad. Minimum,
180 maximum and value will in most cases give you all you need. For simpler
181 access to plug-ins, the /select/plugin/ set of commands will handle most