shapeModelIndex1 = ParameterModelUtilities.indexOfId(lfo1Models, ID.lfo1Shape);
shapeModelIndex2 = ParameterModelUtilities.indexOfId(lfo2Models, ID.lfo2Shape);
Action r1t = new AbstractAction() {
public void actionPerformed(ActionEvent e) {
new ZDBModifyThread("Refresh LFO 1") {
public void run() {
try {
voices[0].getPreset().refreshVoiceParameters(voices[0].getVoiceNumber(), (Integer[]) lfo1Ids.toArray(new Integer[lfo1Ids.size()]));
} catch (NoSuchContextException e1) {
e1.printStackTrace();
} catch (PresetEmptyException e1) {
e1.printStackTrace();
} catch (NoSuchPresetException e1) {
e1.printStackTrace();
} catch (NoSuchVoiceException e1) {
e1.printStackTrace();
} catch (ParameterValueOutOfRangeException e1) {
e1.printStackTrace();
} catch (IllegalParameterIdException e1) {
e1.printStackTrace();
}
}
}.start();
}
};
r1t.putValue("tip", "Refresh LFO 1");
Action r2t = new AbstractAction() {
public void actionPerformed(ActionEvent e) {
new ZDBModifyThread("Refresh LFO 2") {
public void run() {
try {
voices[0].getPreset().refreshVoiceParameters(voices[0].getVoiceNumber(), (Integer[]) lfo2Ids.toArray(new Integer[lfo2Ids.size()]));
} catch (NoSuchContextException e1) {
e1.printStackTrace();