String text = "{" + doc.getText(pos, len).trim() + "}";//"a" is parsed as declaration
ret.type = TYPE_NOTE;
ret.node = pitch;
ByteArrayInputStream in = new ByteArrayInputStream(text.getBytes());
Parser p = new Parser(in);
ASTDocument ll = p.Document();
ret.pitch = (ASTPitch) ll.jjtGetChild(0).jjtGetChild(0);
int x = text.length() - 1;
ret.rest = "";
} catch (Exception ex) {