amads.pitch.ivdirdist1#
Provides the ivdirdist1 function
Original doc: https://citeseerx.ist.psu.edu/document?repid=rep1&type=pdf&doi=6e06906ca1ba0bf0ac8f2cb1a929f3be95eeadfa#page=64
- amads.pitch.ivdirdist1.ivdirdist1(score, weighted=True) list[float] [source]#
Returns the proportion of upward intervals for each interval size
Currently, intervals greater than an octave will be ignored.
- 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 12-element list representing the proportion of
upward intervals for each interval size. The components are spaced at semitone distances with the first component representing a minor second and the last component the octave. If the score is empty, the function returns a list with all elements set to zero.
- Parameters:
score (
Score
)- Return type:
list
[float
]