pitch.stemDirection = prev.stemDirection;
pitch.jjtSetParent(prev.jjtGetParent());
pitch.jjtGetParent().jjtAddChild(pitch, pitch.jjtGetParent().jjtGetNumChildren());
pitch.setParentContext(prev.getParentContext());
PitchLayout.testLayout(new LayoutEnv(), pitch);
if (chordMode) {
pitch.getlayoutObject().x = prev.getlayoutObject().x;
} else {
//move others
prev.getlayoutObject().moveAllXInSameGroup(prev.getlayoutObject().x, pitch.getlayoutObject().distanceRight);