Package org.lilypondbeans.jccparser

Examples of org.lilypondbeans.jccparser.ASTDeclaration


                 String file=doc.getText(idBlk[0],doc.getLength()-idBlk[0]).split("\"")[1];
                 file=new File(UpdateNodeTask.getInstance().lastRoot.parser.getFileName()).getParent()+"/"+file;
                 Executor.openLine(file, 1);
                 return;
             }
             ASTDeclaration decl= UpdateNodeTask.getInstance().lastRoot.getDeclarations().get(text);
             if(decl!=null)
                 NetbeansTextEditor.getInstance().selectPosition(decl);

        }catch(Exception ex){
            ex.printStackTrace();
View Full Code Here


    //whole Notes per minute

    private void parseTempoWholesPerMinute() {
        //tempoWholesPerMinute = #(ly:make-moment 144 4)
        ASTDocument doc = (ASTDocument) score.getContext(ASTContext.TYPE_DOCUMENT);
        ASTDeclaration dec = doc.getDeclarations().get("tempoWholesPerMinute");
        double tempo = 0;
        if (dec == null) {
//         parseMidiScore(score)*(double)60;
         //   tempo=100/4;
            if (tempo == 0) {
                tempo = 60 / 4;//60 viertel pro min
            }
        } else {
            String k = dec.toString();

            Object l = dec.jjtGetValue();
            Token tok = dec.jjtGetFirstToken().next.next.next.next.next.next.next.next;
            String z1 = tok.image.trim();
            String z2 = tok.next.image.trim();
            tempo = ((double) Integer.parseInt(z1) / (double) Integer.parseInt(z2));
        }
        midiTime=tempo;
View Full Code Here

TOP

Related Classes of org.lilypondbeans.jccparser.ASTDeclaration

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.