def beat_strength(notes):
    """
    The strength of the note corresponds to where it lies relative to 1,1/2,1/4 notes...

    This corresponds to Temperley's HPR 2

    Args:
        notes: the notes to consider (from the ChordSpan)

    Returns:
        int: the score obtained
    """
    val = 0

    # iterate through all notes in the ChordSpan
    for note in notes:
        if note.start % 32 == 0:
            val += 3
        elif note.start % 16 == 0:
            val += 2
        elif note.start % 8 == 0:
            val += 1
        else:
            val += 0
    return val