double beats = phraseArray[0].getNumerator();
double endTime = score.getEndTime();
int numbOfCompleteBars = (int) (endTime / beats);
double startOflastBar = beats * numbOfCompleteBars;
if (startOflastBar == endTime) startOflastBar -= beats;
Score oneBar = score.copy(startOflastBar, endTime);
for (int i = 0; i < oneBar.size(); i++) {
oneBar.getPart(i).getPhrase(0).setStartTime(0.0);
}
return oneBar;
}