(self, composition)
return False
Checks a composition to see if the lowest note within it is repeated.

    Args:
      composition: A list of integers representing the notes in the piece.
    Returns:
      True if the lowest note was unique, False otherwise.
Checks a composition to see if the lowest note within it is repeated.
Checks a composition to see if the lowest note within it is repeated .
def detect_low_unique(self, composition):
    """Checks a composition to see if the lowest note within it is repeated.

    Args:
      composition: A list of integers representing the notes in the piece.
    Returns:
      True if the lowest note was unique, False otherwise.
    """
    no_special_events = [x for x in composition
                         if x not in (NO_EVENT, NOTE_OFF)]
    if no_special_events:
      min_note = min(no_special_events)
      if list(composition).count(min_note) == 1:
        return True
    return False
def detect_low_unique ( self , composition ) : no_special_events = [ x for x in composition if x not in ( NO_EVENT , NOTE_OFF ) ] if no_special_events : min_note = min ( no_special_events ) if list ( composition ) . count ( min_note ) == 1 : return True return False