Example #1
0
 /**
  * Must be called (instead of the constructor) for notes other than the first note being parsed
  *
  * @return
  */
 public NoteContext createNextNoteContext() {
   NoteContext noteContext = new NoteContext();
   noteContext.isFirstNote = false;
   noteContext.isMelodicNote = anotherNoteIsMelodic;
   noteContext.isHarmonicNote = anotherNoteIsHarmonic;
   return noteContext;
 }
Example #2
0
 public NoteContext createChordNoteContext() {
   NoteContext noteContext = new NoteContext();
   noteContext.isFirstNote = false;
   noteContext.isMelodicNote = false;
   noteContext.isHarmonicNote = true;
   noteContext.decimalDuration = decimalDuration;
   return noteContext;
 }