def chromatic_leaps_frequency_pie(chromatic_intervals):
    counted = utils.special_counter(chromatic_intervals, False)
    for i in ['P1', 'M2', 'm2', 'M3', 'm3']:
        del counted[i]
    r = utils.aux_pie_chart(counted)
    r.insert(0, ['Interval', 'Amount'])
    return r
示例#2
0
def frequency_pie(ambitus_list):
    r = utils.aux_pie_chart(Counter(ambitus_list))
    r.insert(0, ['Ambitus', 'Amount'])
    return r
def frequency_pie(intervals):
    r = utils.aux_pie_chart(utils.special_counter(intervals))
    r.insert(0, ['Interval', 'Amount'])
    return r
def frequency_pie(durations):
    r = utils.aux_pie_chart(utils.special_counter(durations))
    r.insert(0, ['Duration quarter', 'Amount'])
    return r