Phrase phr = new Phrase(0.0);
Score scr = new Score();
if (fileName != null) {
Read.midi(scr, loadMidi.getDirectory() + fileName);
}
scr.clean();
if (scr.size() > 0 && scr.getPart(0).size() > 0) phr = scr.getPart(0).getPhrase(0);
//System.out.println("Size = " + phr.size());
return phr;
}