public static OnStageStatus GetOnStageStatusOf(RuntimeNote note, double now, NoteTimePoints timePoints) { if (now < timePoints.Enter) { return(OnStageStatus.Incoming); } else if (now > timePoints.Leave) { return(OnStageStatus.Passed); } else { return(OnStageStatus.Visible); } }
public static bool IsNotePassed(RuntimeNote note, double now, NoteTimePoints timePoints) { return(GetOnStageStatusOf(note, now, timePoints) == OnStageStatus.Passed); }
public static bool IsNoteVisible(RuntimeNote note, double now, NoteTimePoints timePoints) { return(GetOnStageStatusOf(note, now, timePoints) == OnStageStatus.Visible); }
public static bool IsNoteIncoming(RuntimeNote note, double now, NoteTimePoints timePoints) { return(GetOnStageStatusOf(note, now, timePoints) == OnStageStatus.Incoming); }