}
public static IntegerUseMap getSampleUsage(PresetContext pc, Integer[] presets) throws NoSuchContextException, NoSuchPresetException, PresetEmptyException {
IntegerUseMap m = new IntegerUseMap();
for (int i = 0; i < presets.length; i++)
m.mergeUseMap(pc.presetSampleUsage(presets[i]));
return m;
}
public static boolean autoMapGroupKeyWin(PresetContext pc, Integer preset, Integer group) throws PresetEmptyException, NoSuchPresetException, NoSuchGroupException, NoSuchContextException {
return autoMapVoiceKeyWin(pc, preset, pc.getVoiceIndexesInGroup(preset, group));