Package jm.music.data

Examples of jm.music.data.Phrase$Position


                        return;
                }
                boolean left = true;
                Enumeration enum1 = part.getPhraseList().elements();
                while(enum1.hasMoreElements()){
                        Phrase phr = (Phrase) enum1.nextElement();
                        randomize(phr, pitchVariation, rhythmVariation, dynamicVariation);
                }
        }
View Full Code Here


            if (part == null) {
                return;
            }
            Enumeration enum1 = part.getPhraseList().elements();
            while(enum1.hasMoreElements()){
                Phrase phr = (Phrase) enum1.nextElement();
                slurUp(phr, numberOfNotes);
            }
        }
View Full Code Here

            if (part == null) {
                return;
            }
            Enumeration enum1 = part.getPhraseList().elements();
            while(enum1.hasMoreElements()){
                Phrase phr = (Phrase) enum1.nextElement();
                slurDown(phr, numberOfNotes);
            }
        }
View Full Code Here

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

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

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

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

  public Object extractCategoryTokenData(byte[] buffer, int offset, int length) {
    if (length == 0) {
      return null;
    }
    Integer i = Integer.valueOf(Vint8.decode(buffer, new Position(offset)));
    return i;
  }
View Full Code Here

    if (!super.setdoc(docId)) {
      return false;
    }

    // read header - number of enhancements and their lengths
    Position position = new Position();
    nEnhancements = Vint8.decode(buffer, position);
    for (int i = 0; i < nEnhancements; i++) {
      enhancementLength[i] = Vint8.decode(buffer, position);
    }
View Full Code Here

  public Object extractCategoryTokenData(byte[] buffer, int offset, int length) {
    if (length == 0) {
      return null;
    }
    Integer i = Integer.valueOf(Vint8.decode(buffer, new Position(offset)));
    return i;
  }
View Full Code Here

TOP

Related Classes of jm.music.data.Phrase$Position

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.