return false;
}
if (node.jjtGetFirstToken().kind == ParserConstants.fingering
|| node.jjtGetFirstToken().kind == ParserConstants.rightHandFinger
|| node.jjtGetFirstToken().kind == ParserConstants.stringnumber) {
ASTSymbols symbol = (ASTSymbols) node;
if(symbol.pitch==null)//eg \afterGrace would be ignored until noww
return true;
FingeringLayout layout = new FingeringLayout();
String image = symbol.jjtGetFirstToken().image;
try {
if (image.substring(1).startsWith("\\rightHandFinger")) {
int t = image.charAt(image.length() - 1) - 48;//49=1
layout.toDraw = leftHandChars[t - 1];
} else {
if (image.startsWith("\\")) {
layout.stringNumber = true;
}
layout.toDraw = symbol.jjtGetFirstToken().image.substring(1, 2);
}
} catch (Exception ex) {
ex.printStackTrace();
}
symbol.setLayoutObject(layout);
layout.distanceRight = 0;
layout.priority = symbol.pitch.getlayoutObject().priority;
} else {
return false;
}