unitItem = unitItem.getNext()) {
FeatureSet featureSet = unitItem.getFeatures();
String unitName = featureSet.getString("name");
targetEnd = featureSet.getInt("target_end");
Unit unit = (Unit) featureSet.getObject("unit");
int unitSize = unit.getSize();
uIndex = 0;
m = (float)unitSize/(float)(targetEnd - targetStart);
numberFrames = lpcResult.getNumberOfFrames();
// for all the pitchmarks that are required
for (; (pmI < numberFrames) &&
(targetTimes[pmI] <= targetEnd); pmI++) {
Sample sample = unit.getNearestSample(uIndex);
// Get LPC coefficients by copying
lpcResult.setFrame(pmI, sample.getFrameData());
// Get residual by copying