Skip to content

ismonophonic

ismonophonic

ismonophonic(score: Score)

Determine if a musical score is monophonic.

A monophonic score has no overlapping notes (e.g., chords).

Parameters:

  • score (Score) –

    The musical score to analyze.

Returns:

  • bool

    True if the score is monophonic, False otherwise.

Source code in amads/pitch/ismonophonic.py
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
def ismonophonic(score: Score):
    """
    Determine if a musical score is monophonic.

    A monophonic score has no overlapping notes (e.g., chords).

    Parameters
    ----------
    score : Score
        The musical score to analyze.

    Returns
    -------
    bool
        True if the score is monophonic, False otherwise.
    """
    return _ismonophonic(score.find_all(Note))