/** Convert a SMF into the jMusic data type */ @SuppressWarnings("rawtypes") public static void SMFToScore(Score score, SMFTools smf) { Enumeration<Track> en = smf.getTrackList().elements(); // Go through tracks while (en.hasMoreElements()) { Part part = new Part(); Track smfTrack = en.nextElement(); Vector evtList = smfTrack.getEvtList(); Vector phrVct = new Vector(); sortEvents(evtList, phrVct, smf, part); for (int i = 0; i < phrVct.size(); i++) { part.addPhrase((Phrase) phrVct.elementAt(i)); } score.addPart(part); score.clean(); } }