Example #1
0
  public Embellishment getEmbellishment(Note noteBefore, Note embellishedNote) {
    Embellishment e;

    if (noteBefore != null && noteBefore.getPitch() == Pitch.D) e = afterD.clone();
    else e = notAfterD.clone();

    if (noteBefore != null && noteBefore.getPitch() == Pitch.LOW_G) e.removeFirst();

    return e;
  }
Example #2
0
  public Embellishment getEmbellishment(Note noteBefore, Note embellishedNote) {
    GraceNote gripNote = (embellishedNote.getPitch() == Pitch.D) ? GraceNote.B : GraceNote.D;
    GraceNote themeNote = new GraceNote(embellishedNote.getPitch(), true);

    GraceNote[] graces;
    if (noteBefore.getPitch().higherOrEqual(Pitch.G))
      graces = new GraceNote[] {themeNote, GraceNote.LOW_G.asLong(), gripNote, GraceNote.LOW_G};
    else
      graces =
          new GraceNote[] {
            GraceNote.G, themeNote, GraceNote.LOW_G.asLong(), gripNote, GraceNote.LOW_G
          };

    return new Embellishment(noteBefore + "-Bubbly", graces);
  }
Example #3
0
 public boolean canEmbellish(Note noteBefore, Note embellishedNote) {
   return embellishedNote.getPitch() != Pitch.LOW_G;
 }
Example #4
0
 public boolean canEmbellish(Note noteBefore, Note embellishedNote) {
   // TODO is this true? Could we have one on an E or F?
   return Pitch.E.higherThan(embellishedNote.getPitch());
 }