78 |
"MIDI_INPUT_DEVICE: 0\r\n" |
"MIDI_INPUT_DEVICE: 0\r\n" |
79 |
"MIDI_INPUT_PORT: 0\r\n" |
"MIDI_INPUT_PORT: 0\r\n" |
80 |
"MIDI_INPUT_CHANNEL: ALL\r\n" |
"MIDI_INPUT_CHANNEL: ALL\r\n" |
81 |
"VOLUME: 0.5\r\n"; |
"VOLUME: 0.5\r\n" |
82 |
|
"MUTE: FALSE\r\n" |
83 |
|
"SOLO: TRUE\r\n"; |
84 |
} |
} |
85 |
else if (lscp_parser_test(&tok, "VOICE_COUNT")) { |
else if (lscp_parser_test(&tok, "VOICE_COUNT")) { |
86 |
// Current number of active voices: |
// Current number of active voices: |
350 |
// GET AVAILABLE_ENGINES |
// GET AVAILABLE_ENGINES |
351 |
pszResult = "3\r\n"; |
pszResult = "3\r\n"; |
352 |
} |
} |
353 |
|
else if (lscp_parser_test2(&tok, "SERVER", "INFO")) { |
354 |
|
// Getting information about the server. |
355 |
|
// GET SERVER INFO |
356 |
|
sprintf(szTemp, "DESCRIPTION: example_server (%s) %s\r\n" |
357 |
|
"VERSION: %s\r\n", lscp_server_package(), |
358 |
|
lscp_server_build(), lscp_server_version()); |
359 |
|
pszResult = szTemp; |
360 |
|
} |
361 |
else if (lscp_parser_test2(&tok, "ENGINE", "INFO")) { |
else if (lscp_parser_test2(&tok, "ENGINE", "INFO")) { |
362 |
// Getting information about an engine. |
// Getting information about an engine. |
363 |
// GET ENGINE INFO <engine-name> |
// GET ENGINE INFO <engine-name> |
437 |
// Setting channel volume: |
// Setting channel volume: |
438 |
// SET CHANNEL VOLUME <sampler-channel> <volume> |
// SET CHANNEL VOLUME <sampler-channel> <volume> |
439 |
} |
} |
440 |
|
else if (lscp_parser_test(&tok, "MUTE")) { |
441 |
|
// Muting a sampler channel: |
442 |
|
// SET CHANNEL MUTE <sampler-channel> <mute> |
443 |
|
} |
444 |
|
else if (lscp_parser_test(&tok, "SOLO")) { |
445 |
|
// Soloing a sampler channel: |
446 |
|
// SET CHANNEL SOLO <sampler-channel> <solo> |
447 |
|
} |
448 |
else if (lscp_parser_test(&tok, "AUDIO_OUTPUT_TYPE")) { |
else if (lscp_parser_test(&tok, "AUDIO_OUTPUT_TYPE")) { |
449 |
// Setting audio output type: |
// Setting audio output type: |
450 |
// SET CHANNEL AUDIO_OUTPUT_TYPE <sampler-channel> <audio-output-type> |
// SET CHANNEL AUDIO_OUTPUT_TYPE <sampler-channel> <audio-output-type> |