def score2durations(score):
    """ Generates a sequence of note durations (in quarterLengths) from a score.

    Args:
        score (music21.Score): the input score

    Returns:
        list[float]: a list of durations corresponding to each note in the score
    """
    return [n.duration.quarterLength for n in score.flat.notes for p in n.pitches]