2460 |
public synchronized int |
public synchronized int |
2461 |
addMidiInstrumentMap(String name) throws IOException, LSException, LscpException { |
addMidiInstrumentMap(String name) throws IOException, LSException, LscpException { |
2462 |
verifyConnection(); |
verifyConnection(); |
2463 |
out.writeLine("ADD MIDI_INSTRUMENT_MAP '" + name + "'"); |
out.writeLine("ADD MIDI_INSTRUMENT_MAP '" + toEscapedString(name) + "'"); |
2464 |
if(getPrintOnlyMode()) return -1; |
if(getPrintOnlyMode()) return -1; |
2465 |
|
|
2466 |
ResultSet rs = getEmptyResultSet(); |
ResultSet rs = getEmptyResultSet(); |
2563 |
|
|
2564 |
for(String s : lnS) { |
for(String s : lnS) { |
2565 |
if(s.startsWith("NAME: ")) { |
if(s.startsWith("NAME: ")) { |
2566 |
name = s.substring("NAME: ".length()); |
name = toNonEscapedString(s.substring("NAME: ".length())); |
2567 |
} else if(s.startsWith("DEFAULT: ")) { |
} else if(s.startsWith("DEFAULT: ")) { |
2568 |
b = Boolean.parseBoolean(s.substring("DEFAULT: ".length())); |
b = Boolean.parseBoolean(s.substring("DEFAULT: ".length())); |
2569 |
} else { |
} else { |
2611 |
throws IOException, LscpException, LSException { |
throws IOException, LscpException, LSException { |
2612 |
|
|
2613 |
verifyConnection(); |
verifyConnection(); |
2614 |
|
name = toEscapedString(name); |
2615 |
out.writeLine("SET MIDI_INSTRUMENT_MAP NAME " + + mapId + " '" + name + "'"); |
out.writeLine("SET MIDI_INSTRUMENT_MAP NAME " + + mapId + " '" + name + "'"); |
2616 |
if(getPrintOnlyMode()) return; |
if(getPrintOnlyMode()) return; |
2617 |
|
|
2667 |
if(!info.getLoadMode().name().equals("DEFAULT")) { |
if(!info.getLoadMode().name().equals("DEFAULT")) { |
2668 |
cmd.append(' ').append(info.getLoadMode().name()); |
cmd.append(' ').append(info.getLoadMode().name()); |
2669 |
} |
} |
2670 |
if(info.getName() != null) cmd.append(" '").append(info.getName()).append("'"); |
|
2671 |
|
if(info.getName() != null) { |
2672 |
|
String s = toEscapedString(info.getName()); |
2673 |
|
cmd.append(" '").append(s).append("'"); |
2674 |
|
} |
2675 |
|
|
2676 |
out.writeLine(cmd.toString()); |
out.writeLine(cmd.toString()); |
2677 |
if(getPrintOnlyMode()) return; |
if(getPrintOnlyMode()) return; |
3049 |
out.writeLine("LIST AVAILABLE_ENGINES"); |
out.writeLine("LIST AVAILABLE_ENGINES"); |
3050 |
if(getPrintOnlyMode()) return null; |
if(getPrintOnlyMode()) return null; |
3051 |
|
|
3052 |
return parseQuotedStringList(getSingleLineResultSet().getResult()); |
return parseStringList(getSingleLineResultSet().getResult()); |
3053 |
} |
} |
3054 |
|
|
3055 |
/** |
/** |
3520 |
|
|
3521 |
verifyConnection(); |
verifyConnection(); |
3522 |
String s = String.valueOf(channel) + " " + String.valueOf(midiCtrl); |
String s = String.valueOf(channel) + " " + String.valueOf(midiCtrl); |
3523 |
if(name != null) s += " '" + name + "'"; |
if(name != null) s += " '" + toEscapedString(name) + "'"; |
3524 |
out.writeLine("CREATE FX_SEND " + s); |
out.writeLine("CREATE FX_SEND " + s); |
3525 |
if(getPrintOnlyMode()) return -1; |
if(getPrintOnlyMode()) return -1; |
3526 |
|
|
3651 |
throws IOException, LscpException, LSException { |
throws IOException, LscpException, LSException { |
3652 |
|
|
3653 |
verifyConnection(); |
verifyConnection(); |
3654 |
String args = " " + channel + " " + fxSend + " '" + name + "'"; |
String args = " " + channel + " " + fxSend + " '" + toEscapedString(name) + "'"; |
3655 |
out.writeLine("SET FX_SEND NAME" + args); |
out.writeLine("SET FX_SEND NAME" + args); |
3656 |
if(getPrintOnlyMode()) return; |
if(getPrintOnlyMode()) return; |
3657 |
|
|
3750 |
* @see #getSamplerChannels |
* @see #getSamplerChannels |
3751 |
*/ |
*/ |
3752 |
public synchronized void |
public synchronized void |
3753 |
editInstrument(int samplerChn) throws IOException, LscpException, LSException { |
editChannelInstrument(int samplerChn) throws IOException, LscpException, LSException { |
3754 |
verifyConnection(); |
verifyConnection(); |
3755 |
out.writeLine("EDIT INSTRUMENT " + samplerChn); |
out.writeLine("EDIT CHANNEL INSTRUMENT " + samplerChn); |
3756 |
if(getPrintOnlyMode()) return; |
if(getPrintOnlyMode()) return; |
3757 |
|
|
3758 |
ResultSet rs = getEmptyResultSet(); |
ResultSet rs = getEmptyResultSet(); |