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; }
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); }
public boolean canEmbellish(Note noteBefore, Note embellishedNote) { return embellishedNote.getPitch() != Pitch.LOW_G; }
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()); }