Package org.lilypondbeans.jccparser

Examples of org.lilypondbeans.jccparser.ASTScore


        this.updateUI();
    }

    public ASTScore setFile(String file) throws Exception {
        frame.setTitle(file);
        ASTScore root = ASTScore.createFromFile(file, true);
        setScore(root);
        return root;
    }
View Full Code Here


        pr.waitFor();*/
    }

    public void parseMidi(String file) throws Exception {
        try {
            ASTScore root = ASTScore.createFromFile(file, true);
            MidiPositions mid = new MidiPositions(root);
            mid.calc();
            double s1 = mid.getCalcedMidiSeconds();
            LineNumberReader rd = new LineNumberReader(new FileReader(file.replace(".ly", ".m")));
            double s2 = Double.parseDouble(rd.readLine());
View Full Code Here

        if (!new File(file + ".mid").exists() || doc == null) {
            return null;
        }

        try {
            ASTScore score = doc.reparse(1, true);
            if (score == null) {
                throw new Exception("midi score=null");
            }
            STATUS_REPARSED++;
            if (!new File(file + ".repar").exists()) {
View Full Code Here

                    try {
                        // convert(file + "\\" + f);
                        compile(sFile);
                        //readMidiLen(sFile);
                        ASTDocument doc = parse(sFile);
                                    ASTScore score = reparse(sFile, doc);
                                    testMidi(sFile, score);
                        // parse(file + "\\" + f);
                        //  new Main().parse(file + "\\" + f);
                    } catch (Exception ex) {
                        String msg = ex.getMessage();
View Full Code Here

TOP

Related Classes of org.lilypondbeans.jccparser.ASTScore

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.