252253254255256257258259260261262
* @param String fileName */ public static void jm(CPhrase cphr, String fileName) { if (cphr == null) { System.err.println("jMusic Read.jm error: The CPhrase is not initialised! I'm doing it for you."); cphr = new CPhrase(); } cphr.empty(); Score s = new Score(); jm(s, fileName); Part p = new Part();
357358359360361362363364365366367
* @param String fileName */ public static void xml(CPhrase cphr, String fileName) { if (cphr == null) { System.err.println("jMusic Read.xml error: The CPhrase is not initialised! I'm doing it for you."); cphr = new CPhrase(); } cphr.empty(); Score s = new Score(); xml(s, fileName); Part p = new Part();
102103104105106107108109110111112113114
} fullKit.add(phr); } // add phrases to the instrument (part) CPhrase cp = new CPhrase(0.0); cp.setPhraseList(new Vector<Phrase>(fullKit)); cp.setStartTime(i * ctx.getNormalizedMeasureSize()); drumPart.addCPhrase(cp); } } }