def remove_durations_in_chords(music_expr):
    """Remove the absolute durations within chord signs: < and >

    Args:
        music_expr (str): the music expression

    Returns:
        str: the same music expression but with the durations removed from within chords.
    """
    cleaned = ''
    in_chord = False
    in_timing = False
    for char in music_expr:
        if char == '<':
            in_chord = True
            cleaned += char
        elif char == '>':
            in_chord = False
            in_timing = False
            cleaned += char
        elif not in_chord:
            cleaned += char
        elif in_timing:
            if char.isalpha() or char == ' ':
                in_timing = False
                cleaned += char
        elif char.isdigit():
            in_timing = True
        else:
            cleaned += char
    return cleaned
