Package jm.music.data

Examples of jm.music.data.Part


                        return;
                }
                boolean left = true;
                Enumeration enum1 = score.getPartList().elements();
                while(enum1.hasMoreElements()){
                        Part p = (Part) enum1.nextElement();
                        randomize(p, pitchVariation, rhythmVariation, dynamicVariation);
                }
        }
View Full Code Here


            if (score == null) {
                return;
            }
            Enumeration enum1 = score.getPartList().elements();
            while(enum1.hasMoreElements()){
                Part p = (Part) enum1.nextElement();
                slurUp(p, numberOfNotes);
            }
        }
View Full Code Here

            if (score == null) {
                return;
            }
            Enumeration enum1 = score.getPartList().elements();
            while(enum1.hasMoreElements()){
                Part p = (Part) enum1.nextElement();
                slurDown(p, numberOfNotes);
            }
        }
View Full Code Here

        * @param double The amount to multiply the duration by.
        */
        public static void increaseDuration(Score score, double multiplyer) {
            Enumeration enum1 = score.getPartList().elements();
            while(enum1.hasMoreElements()){
                Part p = (Part) enum1.nextElement();
                increaseDuration(p, multiplyer);
            }
        }
View Full Code Here

     * @param amount  - The number of beats to add  to the duration.
     */
    public static void addToDuration(Score score, double amount) {
        Enumeration enum1 = score.getPartList().elements();
        while(enum1.hasMoreElements()){
            Part p = (Part) enum1.nextElement();
            addToDuration(p, amount);
        }
    }
View Full Code Here

     * @param amount -  The number of beats to add.
     */
    public static void addToRhythmValue(Score score, double amount) {
        Enumeration enum1 = score.getPartList().elements();
        while(enum1.hasMoreElements()){
            Part p = (Part) enum1.nextElement();
            addToRhythmValue(p, amount);
        }
    }
View Full Code Here

     * @param amount - The number of beats to add.
     */
    public static void addToLength(Score score, double amount) {
        Enumeration enum1 = score.getPartList().elements();
        while(enum1.hasMoreElements()){
            Part p = (Part) enum1.nextElement();
            addToLength(p, amount);
        }
    }
View Full Code Here

     * @param amount - The scaling multiplyer for the intervals, i.e., 2.0 doubles width.
     */
    public static void expandIntervals(Score score, double amount) {
        Enumeration enum1 = score.getPartList().elements();
        while(enum1.hasMoreElements()){
            Part p = (Part) enum1.nextElement();
            expandIntervals(p, amount);
        }
    }
View Full Code Here

     * @param amount - The dynamic change possible either side of the curent dynamic.
     */
    public static void shake(Score score, int amount) {
        Enumeration enum1 = score.getPartList().elements();
        while(enum1.hasMoreElements()){
            Part part = (Part) enum1.nextElement();
            shake(part, amount);
        }
    }
View Full Code Here

    @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();
        }
    }
View Full Code Here

TOP

Related Classes of jm.music.data.Part

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.