Ejemplo n.º 1
0
 /**
  * Display the jMusic Phrase in a ShowScore window, at the specified x <br>
  * and y coordinates, measured in pixels.
  *
  * @param Phrase
  * @param xLoc the left-right location of the window
  * @param yLoc the up-down location of the window
  */
 public static void sketch(Phrase phr, int xLoc, int yLoc) {
   Score s = new Score("Phrase: " + phr.getTitle());
   Part p = new Part();
   p.addPhrase(phr);
   s.addPart(p);
   new SketchScore(s, xLoc, yLoc);
 }
Ejemplo n.º 2
0
 /**
  * Display the jMusic CPhrase in a piano roll window
  *
  * @param CPhrase
  * @param xLoc the left-right location of the window
  * @param yLoc the up-down location of the window
  */
 public static void pianoRoll(CPhrase cphr, int xLoc, int yLoc) {
   Score s = new Score("Phrase: " + cphr.getTitle());
   Part p = new Part();
   p.addCPhrase(cphr);
   s.addPart(p);
   new ShowScore(s, xLoc, yLoc);
 }
Ejemplo n.º 3
0
 /**
  * Print the jMusic Part in standard output
  *
  * @param Part
  */
 public static void internal(Part part) {
   System.out.println(part.toString());
 }
Ejemplo n.º 4
0
 /**
  * Display the jMusic Part in a ShowScore window, at the specified x and<br>
  * y coordinates, measured in pixels.
  *
  * @param Part
  * @param xLoc the left-right location of the window
  * @param yLoc the up-down location of the window
  */
 public static void sketch(Part p, int xLoc, int yLoc) {
   Score s = new Score("Part: " + p.getTitle());
   s.addPart(p);
   new SketchScore(s, xLoc, yLoc);
 }
Ejemplo n.º 5
0
 /**
  * Display the jMusic Part in a CPN window. At present only the first phrase in the part will be
  * displayed.
  *
  * @param Part
  * @param xLoc the left-right location of the window
  * @param yLoc the up-down location of the window
  */
 public static void notation(Part p, int xLoc, int yLoc) {
   new Notate(p.getPhrase(0), xLoc, yLoc);
 }
Ejemplo n.º 6
0
 /**
  * Display the jMusic Part in a CPN window. At presetn on the first phrase of the part will be
  * displayed.
  *
  * @param Part
  */
 public static void notation(Part p) {
   new Notate(p.getPhrase(0), 0, 0);
 }
Ejemplo n.º 7
0
 /**
  * Display the jMusic Part in a piano roll window
  *
  * @param Part
  * @param xLoc the left-right location of the window
  * @param yLoc the up-down location of the window
  */
 public static void pianoRoll(Part p, int xLoc, int yLoc) {
   Score s = new Score("Part: " + p.getTitle());
   s.addPart(p);
   new ShowScore(s, xLoc, yLoc);
 }