Package jm.music.data

Examples of jm.music.data.Phrase


        if (part == null || qValue <= 0.0 || mode == null || key < 0) {
            return;
        }
        Enumeration enum1 = part.getPhraseList().elements();
    while(enum1.hasMoreElements()){
      Phrase phrase = (Phrase) enum1.nextElement();
            quantize(phrase, qValue, mode, key);
    }
  }
View Full Code Here


        }

      //go through the phrases one by one and accent them
        Enumeration enum1 = part.getPhraseList().elements();
        while(enum1.hasMoreElements()) {
        Phrase phrase = (Phrase) enum1.nextElement();
            accents(phrase, meter, accentedBeats, accentAmount);
    }
    }
View Full Code Here

        }
        // get the curent max
        int max = 0;
        Enumeration enum1 = part.getPhraseList().elements();
        while(enum1.hasMoreElements()) {
            Phrase phrase = (Phrase) enum1.nextElement();
            Enumeration enum2 = phrase.getNoteList().elements();
        while(enum2.hasMoreElements()){
                Note n = (Note) enum2.nextElement();
                if (n.getDynamic() > max) max = n.getDynamic();
        }
      }
    // increase the normalisation
    if (max == Note.MAX_DYNAMIC) {
        return;
    }
    int diff = Note.MAX_DYNAMIC - max;
    Enumeration enum3 = part.getPhraseList().elements();
        while(enum3.hasMoreElements()) {
            Phrase phrase = (Phrase) enum3.nextElement();
        Enumeration enum4 = phrase.getNoteList().elements();
        while(enum4.hasMoreElements()){
                Note n = (Note) enum4.nextElement();
                n.setDynamic(n.getDynamic() + diff);
        }
      } 
View Full Code Here

        if (part == null || scaleFactor <= 0.0) {
            return;
        }
        Enumeration enum1 = part.getPhraseList().elements();
    while(enum1.hasMoreElements()){
      Phrase phrase = (Phrase) enum1.nextElement();
      elongate(phrase, scaleFactor);
    }
  }
View Full Code Here

     * @param Part     Part to be processed
     */
    public static void tiePitches (Part part) {
        Enumeration enum1 = part.getPhraseList().elements();
        while(enum1.hasMoreElements()){
            Phrase phrase = (Phrase)enum1.nextElement();
            tiePitches(phrase);
        }
    }
View Full Code Here

     * @param part     Part to be processed
     */
    public static void tieRests (Part part) {
        Enumeration enum1 = part.getPhraseList().elements();
        while(enum1.hasMoreElements()){
            Phrase phrase = (Phrase)enum1.nextElement();
            tieRests(phrase);
        }
    }
View Full Code Here

     * @param Part     Part to be processed
     */
    public static void fillRests (Part part) {
        Enumeration enum1 = part.getPhraseList().elements();
        while(enum1.hasMoreElements()){
            Phrase phrase = (Phrase)enum1.nextElement();
            fillRests(phrase);
        }
    }
View Full Code Here

            return;
        }
        int currentValue, newValue;
        Enumeration enum1 = part.getPhraseList().elements();
  while(enum1.hasMoreElements()){
            Phrase phr = (Phrase) enum1.nextElement();
      // create new pan value
            Mod.spread(phr);
  }
    }
View Full Code Here

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

        if (part == null || maxLength < minLength) {
            return;
        }
        Enumeration enum1 = part.getPhraseList().elements();
    while(enum1.hasMoreElements()){
      Phrase phrase = (Phrase) enum1.nextElement();
          varyLength(phrase, minLength, maxLength);
       }
    }
View Full Code Here

TOP

Related Classes of jm.music.data.Phrase

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.