//whole Notes per minute
private void parseTempoWholesPerMinute() {
//tempoWholesPerMinute = #(ly:make-moment 144 4)
ASTDocument doc = (ASTDocument) score.getContext(ASTContext.TYPE_DOCUMENT);
ASTDeclaration dec = doc.getDeclarations().get("tempoWholesPerMinute");
double tempo = 0;
if (dec == null) {
// parseMidiScore(score)*(double)60;
// tempo=100/4;
if (tempo == 0) {
tempo = 60 / 4;//60 viertel pro min
}
} else {
String k = dec.toString();
Object l = dec.jjtGetValue();
Token tok = dec.jjtGetFirstToken().next.next.next.next.next.next.next.next;
String z1 = tok.image.trim();
String z2 = tok.next.image.trim();
tempo = ((double) Integer.parseInt(z1) / (double) Integer.parseInt(z2));
}
midiTime=tempo;