Package org.lilypondbeans.jccparser

Examples of org.lilypondbeans.jccparser.ASTBlock


        if (UpdateNodeTask.getInstance().getLastScore() == null) {
            toSearch = UpdateNodeTask.getInstance().lastRoot;
        } else {
            toSearch = UpdateNodeTask.getInstance().getLastScore();
        }
        ASTBlock best = ASTBlock.findPitchBlock(toSearch, 0, 0);
        if (best != null) {
            ASTTempNode nd = ASTTempNode.create("", best.jjtGetFirstToken().beginLine, best.jjtGetFirstToken().beginColumn, best);
            NetbeansTextEditor.getInstance().selectPosition(nd);
        }
    }
View Full Code Here


                    (value.repeat.jjtGetFirstToken().image.contains("tremolo")||
                    (value.repeat.jjtGetFirstToken().image.contains("unfold")))
                    )?true:false;
            if ((allwaysExpand||expandRepeats) && value.repeat != null && !weAreInRepeat) {
                //\repeat volta 2
                ASTBlock block = (ASTBlock) value.repeat.jjtGetChild(0);
                int repeats = Integer.parseInt(value.repeat.jjtGetFirstToken().image.split(" ")[2]);
                for (int r = 0; r < repeats; r++) {
                    expandRepeats(pos, block.getHighestBeatTime(), addBeatTime, true);
                    if (r + 1 != repeats) {
                        addBeatTime += block.getHighestBeatTime() - block.getBeattime();
                    }
                }
                pos = block.getHighestBeatTime();
                value = beattimeToPositions.get(pos);
                //2. repeat schließt sich unmittelbar an
                if(value.repeat!=null){
                    weAreInRepeat=false;
                    continue;
View Full Code Here

TOP

Related Classes of org.lilypondbeans.jccparser.ASTBlock

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.