10 |
On the path to a GUI for linuxsampler, I've been taking some of my spare |
On the path to a GUI for linuxsampler, I've been taking some of my spare |
11 |
time by writing an early implementation for the LSCP (the LinuxSampler |
time by writing an early implementation for the LSCP (the LinuxSampler |
12 |
Control Protocol), as defined from the current available draft document |
Control Protocol), as defined from the current available draft document |
13 |
(http://www.linuxsampler.org/api/draft-linuxsampler-protocol-11.pdf). |
(http://www.linuxsampler.org/api/draft-linuxsampler-protocol.html). |
14 |
|
|
15 |
My implementation, while still rather crude, is taking the form of a |
My implementation, while still rather crude, is taking the form of a |
16 |
programming library for plain conventional C, codenamed liblscp. |
programming library for plain conventional C, codenamed liblscp. |
107 |
|
|
108 |
@ref lscp_client_destroy (client); |
@ref lscp_client_destroy (client); |
109 |
|
|
110 |
</pre>As for the current protocol draft (04), the client interface already maps |
</pre>As for the current protocol draft (11), the client interface already maps |
111 |
the following functions defined in "@ref lscp_client.h", one for each corresponding |
the following functions defined in <lscp/@ref:client.h>, one for each corresponding |
112 |
LSCP comand:<pre> |
LSCP comand, and regarding the sampler channel space:<pre> |
113 |
|
|
114 |
@ref lscp_get_available_engines (client); |
@ref lscp_get_available_engines (client); |
115 |
|
@ref lscp_list_available_engines (client); |
116 |
@ref lscp_get_engine_info (client, engine_name); |
@ref lscp_get_engine_info (client, engine_name); |
117 |
@ref lscp_get_channels (client); |
@ref lscp_get_channels (client); |
118 |
|
@ref lscp_list_channels (client); |
119 |
@ref lscp_add_channel (client); |
@ref lscp_add_channel (client); |
120 |
@ref lscp_load_engine (client, engine_name, channel); |
@ref lscp_load_engine (client, engine_name, channel); |
121 |
@ref lscp_set_channel_audio_device (client, channel, audio_device); |
@ref lscp_set_channel_audio_device (client, channel, audio_device); |
125 |
@ref lscp_set_channel_midi_type (client, channel, midi_type); |
@ref lscp_set_channel_midi_type (client, channel, midi_type); |
126 |
@ref lscp_set_channel_midi_port (client, channel, midi_port); |
@ref lscp_set_channel_midi_port (client, channel, midi_port); |
127 |
@ref lscp_set_channel_midi_channel (client, channel, midi_channel); |
@ref lscp_set_channel_midi_channel (client, channel, midi_channel); |
128 |
|
@ref lscp_set_channel_midi_map (client, channel, midi_map); |
129 |
|
@ref lscp_set_channel_mute (client, channel, mute); |
130 |
|
@ref lscp_set_channel_solo (client, channel, solo); |
131 |
@ref lscp_set_channel_volume (client, channel, volume); |
@ref lscp_set_channel_volume (client, channel, volume); |
132 |
@ref lscp_load_instrument (client, file_name, instr_index, channel); |
@ref lscp_load_instrument (client, file_name, instr_index, channel); |
133 |
@ref lscp_load_instrument_non_modal (client, file_name, instr_index, channel); |
@ref lscp_load_instrument_non_modal (client, file_name, instr_index, channel); |
137 |
@ref lscp_get_channel_buffer_fill (client, usage_type, channel); |
@ref lscp_get_channel_buffer_fill (client, usage_type, channel); |
138 |
@ref lscp_reset_channel (client, channel); |
@ref lscp_reset_channel (client, channel); |
139 |
@ref lscp_remove_channel (client, channel); |
@ref lscp_remove_channel (client, channel); |
140 |
|
@ref lscp_reset_sampler (client); |
141 |
|
@ref lscp_get_server_info (client); |
142 |
|
@ref lscp_get_server_info (client); |
143 |
|
@ref lscp_get_total_voice_count (client); |
144 |
|
@ref lscp_get_total_voice_count_max (client); |
145 |
|
|
146 |
|
</pre>Specific to MIDI instrument mapping interface:<pre> |
147 |
|
|
148 |
|
@ref lscp_add_midi_instrument_map (client, map_name); |
149 |
|
@ref lscp_remove_midi_instrument_map (client, midi_map); |
150 |
|
@ref lscp_get_midi_instrument_maps (client); |
151 |
|
@ref lscp_list_midi_instrument_maps (client); |
152 |
|
@ref lscp_get_midi_instrument_map_name (client, midi_map); |
153 |
|
@ref lscp_set_midi_instrument_map_name (client, midi_map, map_name); |
154 |
|
@ref lscp_map_midi_instrument (client, midi_instr, engine_name, file_name, instr_index, volume, load_mode, name); |
155 |
|
@ref lscp_unmap_midi_instrument (client, midi_instr); |
156 |
|
@ref lscp_get_midi_instruments (client, midi_map); |
157 |
|
@ref lscp_list_midi_instruments (client, midi_map); |
158 |
|
@ref lscp_get_midi_instrument_info (client, midi_instr); |
159 |
|
@ref lscp_clear_midi_instruments (client, midi_map); |
160 |
|
|
161 |
|
</pre>For the audio output and MIDI input device configuration interface, |
162 |
|
the following functions are respectively defined in <lscp/@ref:device.h>:<pre> |
163 |
|
|
164 |
|
@ref lscp_get_available_audio_drivers (client); |
165 |
|
@ref lscp_list_available_audio_drivers (client); |
166 |
|
@ref lscp_get_audio_driver_info (client, audio_driver); |
167 |
|
@ref lscp_get_audio_driver_param_info (client, audio_driver, param_key, deplist); |
168 |
|
@ref lscp_create_audio_device (client, audio_driver, params); |
169 |
|
@ref lscp_destroy_audio_device (client, audio_device); |
170 |
|
@ref lscp_get_audio_devices (client); |
171 |
|
@ref lscp_list_audio_devices (client); |
172 |
|
@ref lscp_get_audio_device_info (client, audio_device); |
173 |
|
@ref lscp_set_audio_device_param (client, audio_device, param); |
174 |
|
@ref lscp_get_audio_channel_info (client, audio_device, audio_channel); |
175 |
|
@ref lscp_get_audio_channel_param_info (client, audio_device, audio_channel, param); |
176 |
|
@ref lscp_set_audio_channel_param (client, audio_device, audio_channel, param); |
177 |
|
|
178 |
|
@ref lscp_get_available_midi_drivers (client); |
179 |
|
@ref lscp_list_available_midi_drivers (client); |
180 |
|
@ref lscp_get_midi_driver_info (client, midi_driver); |
181 |
|
@ref lscp_get_midi_driver_param_info (client, midi_driver, param_key, deplist); |
182 |
|
@ref lscp_create_midi_device (client, midi_driver, params); |
183 |
|
@ref lscp_destroy_midi_device (client, midi_device); |
184 |
|
@ref lscp_get_midi_devices (client); |
185 |
|
@ref lscp_list_midi_devices (client); |
186 |
|
@ref lscp_get_midi_device_info (client, midi_device); |
187 |
|
@ref lscp_set_midi_device_param (client, midi_device, param); |
188 |
|
@ref lscp_get_midi_port_info (client, midi_device, midi_port); |
189 |
|
@ref lscp_get_midi_port_param_info (client, midi_device, midi_port, param); |
190 |
|
@ref lscp_set_midi_port_param (client, midi_device, midi_port, param); |
191 |
|
|
192 |
</pre>All these functions are wrappers to @ref lscp_client_query, and some will handle |
</pre>Most of these functions are wrappers to @ref lscp_client_query, and some will handle |
193 |
and change the result string accordingly. |
and change the result string accordingly. |
194 |
|
|
195 |
|
|