示例#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);
 }
示例#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);
 }
示例#3
0
 /**
  * Print the jMusic Score in standard output
  *
  * @param Score
  */
 public static void internal(Score score) {
   System.out.println(score.toString());
 }
示例#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);
 }
示例#5
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);
 }