Package org.lilypondbeans.jccparser

Examples of org.lilypondbeans.jccparser.ASTChord


    }

    public void gotoUp() {
        SimpleNode el = UpdateNodeTask.getInstance().getLastCurrent();
        if (el.jjtGetParent().id == ParserTreeConstants.JJTCHORD && el.id == ParserTreeConstants.JJTPITCH) {
            ASTChord chord = (ASTChord) el.jjtGetParent();//ignore others in same chord
            SimpleNode ret = ((ASTChord) el.jjtGetParent()).getHigherPitch((ASTPitch) el);
            if (ret != null) {
                NetbeansTextEditor.getInstance().selectPosition(ret);
                return;
            } else {
View Full Code Here


    }

    public void gotoDown() {
        SimpleNode el = UpdateNodeTask.getInstance().getLastCurrent();
        if (el.jjtGetParent().id == ParserTreeConstants.JJTCHORD && el.id == ParserTreeConstants.JJTPITCH) {
            ASTChord chord = (ASTChord) el.jjtGetParent();//ignore others in same chord
            SimpleNode ret = ((ASTChord) el.jjtGetParent()).getLowerPitch((ASTPitch) el);
            if (ret != null) {
                NetbeansTextEditor.getInstance().selectPosition(ret);
                return;
            } else {
View Full Code Here

     */
    public void makeChord() {
        if (node.jjtGetParent().id == ParserTreeConstants.JJTCHORD) {
            return;
        }
        ASTChord ch = new ASTChord(ParserTreeConstants.JJTCHORD);
        ch.jjtAddChild(node, 0);
        ch.setBeattime(node.getBeattime());
        ch.clef = node.clef;
        ch.lastBar = node.lastBar;
        int pos = node.jjtGetParent().findIndexOf(node);
        node.jjtGetParent().jjtAddChild(ch, pos);
        node.jjtSetParent(ch);
View Full Code Here

TOP

Related Classes of org.lilypondbeans.jccparser.ASTChord

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.