1058 |
} |
} |
1059 |
} |
} |
1060 |
|
|
1061 |
|
/** |
1062 |
|
* This task starts an instrument editor for editing the loaded instrument |
1063 |
|
* on the specified sampler channel. |
1064 |
|
*/ |
1065 |
|
public static class EditInstrument extends EnhancedTask { |
1066 |
|
private int chn; |
1067 |
|
|
1068 |
|
/** |
1069 |
|
* Creates new instance of <code>EditInstrument</code>. |
1070 |
|
* @param channel The sampler channel number. |
1071 |
|
*/ |
1072 |
|
public |
1073 |
|
EditInstrument(int channel) { |
1074 |
|
setTitle("Channel.EditInstrument_task"); |
1075 |
|
String s = i18n.getMessage("Channel.EditInstrument.desc"); |
1076 |
|
setDescription(s); |
1077 |
|
|
1078 |
|
this.chn = channel; |
1079 |
|
} |
1080 |
|
|
1081 |
|
/** The entry point of the task. */ |
1082 |
|
public void |
1083 |
|
run() { |
1084 |
|
try { CC.getClient().editInstrument(chn); } |
1085 |
|
catch(Exception x) { |
1086 |
|
setErrorMessage(getDescription() + ": " + HF.getErrorMessage(x)); |
1087 |
|
CC.getLogger().log(Level.FINE, getErrorMessage(), x); |
1088 |
|
} |
1089 |
|
} |
1090 |
|
} |
1091 |
|
|
1092 |
} |
} |