/** * 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; }
public NoteContext createChordNoteContext() { NoteContext noteContext = new NoteContext(); noteContext.isFirstNote = false; noteContext.isMelodicNote = false; noteContext.isHarmonicNote = true; noteContext.decimalDuration = decimalDuration; return noteContext; }