private void updateMinMaxBeat() { _MinBeat = int.MaxValue; _MaxBeat = int.MinValue; foreach (CNote note in _Notes) { updateMinMaxBeat(note); } }