def get_cont_in_scale_points(tone_abs_height, prev_tone, c_3):
    """checks whether tone continues within the scale (up or down)"""
    assert len(prev_tone[0]) >= 0, 'prev_tone should be array'
    if prev_tone[0] == []:
        return 1
    if len(prev_tone[0]) > 1:
        return 10
    previous_tone_abs = prev_tone[0][0]
    previous_tone_rel = previous_tone_abs % 12
    assert c_3['basic_scale'][previous_tone_rel] == 1
    index = 1
    while index <= 12:
        if c_3['basic_scale'][(previous_tone_rel + index) % 12] == 1:
            next_tone_in_scale = (previous_tone_rel + index) % 12
            break
        index += 1
    if tone_abs_height % 12 == next_tone_in_scale:
        return 10
    index = 1
    while index <= 12:
        if c_3['basic_scale'][(previous_tone_rel - index) % 12] == 1:
            prev_tone_in_scale = (previous_tone_rel - index) % 12
            break
        index += 1
    if tone_abs_height % 12 == prev_tone_in_scale:
        return 10
    return 0.1
