import math


def get_log_axis_positions(frequencies):
    """
    Returns an array containing the logarithmically
    distributed frequency positions
    on a scale ranging from 0 to 1. Logarithmic scales
    are often helpful to visualize musical pitches.
    """
    axis_positions = []
    max_freq = frequencies[-1]
    total_width = abs(math.log(frequencies[1] / max_freq))
    for f in frequencies[1:]:
        pos = ( math.log(f / max_freq) + total_width ) / total_width
        axis_positions.append(pos)
    return axis_positions