--- liblscp/trunk/src/client.c 2007/10/01 13:38:37 1364 +++ liblscp/trunk/src/client.c 2007/10/01 17:22:02 1365 @@ -2096,7 +2096,7 @@ if (iSamplerChannel < 0 || iFxSend < 0 || iMidiController < 0 || iMidiController > 127) return LSCP_FAILED; - sprintf(szQuery, "SET FX_SEND MIDI_CONTROLLER %d %d %d %d\r\n", iSamplerChannel, iFxSend, iMidiController); + sprintf(szQuery, "SET FX_SEND MIDI_CONTROLLER %d %d %d\r\n", iSamplerChannel, iFxSend, iMidiController); return lscp_client_query(pClient, szQuery); } @@ -2119,7 +2119,7 @@ if (iSamplerChannel < 0 || iFxSend < 0 || fLevel < 0.0f) return LSCP_FAILED; - sprintf(szQuery, "SET FX_SEND LEVEL %d %d %d %g\r\n", iSamplerChannel, iFxSend, fLevel); + sprintf(szQuery, "SET FX_SEND LEVEL %d %d %f\r\n", iSamplerChannel, iFxSend, fLevel); return lscp_client_query(pClient, szQuery); } @@ -2628,5 +2628,22 @@ return lscp_client_query(pClient, szQuery); } +/** + * Open an instrument editor application for the instrument on the given + * sampler channel: + * EDIT INSTRUMENT + * + * @param pClient Pointer to client instance structure. + * @param iSamplerChannel Sampler Channel. + * + * @returns LSCP_OK on success, LSCP_FAILED otherwise. + */ +lscp_status_t lscp_edit_instrument (lscp_client_t *pClient, int iSamplerChannel) +{ + char szQuery[LSCP_BUFSIZ]; + snprintf(szQuery, LSCP_BUFSIZ, "EDIT INSTRUMENT %d\r\n", iSamplerChannel); + return lscp_client_query(pClient, szQuery); +} + // end of client.c