def get_cont_in_harmony_points(tone_abs_height, prev_tone, c_3):
    """checks whether tone continues within the current harmony (up or down)"""
    assert len(prev_tone[0]) >= 0, 'prev_tone should be array'
    if prev_tone[0] == []:
        return 10
    if len(prev_tone[0]) > 1:
        return 10
    previous_tone_abs = prev_tone[0][0]
    previous_tone_rel = previous_tone_abs % 12
    harmony = c_3['current_beat_harmony_rule'][0][1]
    if previous_tone_rel not in harmony:
        return 10
    for index, tone in enumerate(harmony):
        if tone == previous_tone_rel:
            start_index = index
            break
    next_tone_in_harmony = harmony[(start_index + 1) % len(harmony)]
    if tone_abs_height % 12 == next_tone_in_harmony:
        return 10
    prev_tone_in_harmony = harmony[(start_index - 1) % len(harmony)]
    if tone_abs_height % 12 == prev_tone_in_harmony:
        return 10
    return 0.1
