amads.pitch.pcdist1

Contents

amads.pitch.pcdist1#

Pitch class distribution analysis.

Original doc: https://citeseerx.ist.psu.edu/document?repid=rep1&type=pdf&doi=6e06906ca1ba0bf0ac8f2cb1a929f3be95eeadfa#page=80.

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

Calculate the pitch-class distribution of a musical score.

Parameters:
  • score (Score) – The musical score to analyze

  • weighted (bool) – If True, weight the pitch-class distribution by note durations. Default is True.

Returns:

A 12-element list representing the normalized probabilities of each pitch class (C, C#, D, D#, E, F, F#, G, G#, A, A#, B). If the score is empty, returns a list with all elements set to zero.

Return type:

list[float]