Package org.lilypondbeans

Examples of org.lilypondbeans.MidiPositions


    }

    private void checkMidi() {
        try {
            ASTScore root = ASTScore.createFromFile(lyFileName, true);
            MidiPositions mid = new MidiPositions(root);
            mid.calc();

            SimpleMidiPlayer midi = view.pdfPanel.getMidiPlayer();

            System.out.print(((double) midi.getSize()) / (double) 1000);
            System.out.print(":m");
            System.out.println(mid.getCalcedMidiSeconds());
//            midi.close();
        } catch (Exception ex) {
        }
    }
View Full Code Here


            pdfDecoder.openPdfFile(currentFile);
        }
        gotoPage(1);
      
        ASTScore ast = ASTScore.createFromFile(lyFile, false);
        midPos = new MidiPositions(ast);
        midPos.calc();

    }
View Full Code Here

    }

    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());
            rd.close();
        } catch (Exception ex) {
        }
View Full Code Here

            double cache = getCachedMidiLen(file);
            if (cache == 0) {
                return;
            }
            MidiPositions mid = new MidiPositions(score);
            mid.calc();
            double tm = mid.getCalcedMidiSeconds();
            if (tm == 0) {
                return;
            }
            if (Math.abs(tm - cache) < TIME_TOLLERANCE) {
                STATUS_OK++;
View Full Code Here

TOP

Related Classes of org.lilypondbeans.MidiPositions

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.