pctheory.set_complex

assert_k(s: SetClass, t: SetClass)

Asserts that s and t are in a K-relationship. Source: Morris, “Class Notes for Atonal Music Theory,” p. 49

Parameters:
Returns:

True or False

Return type:

bool

assert_kh(s: SetClass, t: SetClass)

Asserts that s and t are in a Kh-relationship. Source: Morris, “Class Notes for Atonal Music Theory,” p. 49

Parameters:
Returns:

True or False

Return type:

bool

get_k12(nexus: SetClass)

Gets a K-complex about a provided nexus set.

Parameters:

nexus (SetClass) – A nexus set-class

Returns:

The K-complex

Return type:

list

*Only compatible with mod 12

get_kh12(nexus: SetClass)

Gets a Kh-complex about a provided nexus set.

Parameters:

nexus (SetClass) – A nexus set-class

Returns:

The Kh-complex

Return type:

list

*Only compatible with mod 12