}
public void parseMidi(String file) throws Exception {
try {
ASTScore root = ASTScore.createFromFile(file, true);
MidiPositions mid = new MidiPositions(root);
mid.calc();
double s1 = mid.getCalcedMidiSeconds();
LineNumberReader rd = new LineNumberReader(new FileReader(file.replace(".ly", ".m")));
double s2 = Double.parseDouble(rd.readLine());
rd.close();
} catch (Exception ex) {
}