amads.pitch.ivsizedist1

Contents

amads.pitch.ivsizedist1#

Provides the ivsizedist1 function

amads.pitch.ivsizedist1.ivsizedist1(score, weighted=True) list[float][source]#

Returns the interval size distribution of a musical score.

Args:

score (Score): The musical score to analyze. weighted (bool, optional): If True, the interval distribution is

weighted by note durations (default True).

Returns:
list[float]: A 13-element list representing the interval size

distribution. The first element corresponds to unison intervals, and the last element corresponds to octave intervals. If the score is empty, the function returns a list with all elements set to zero.

Parameters:

score (Score)

Return type:

list[float]