pctheory.pseg¶
- intervals(pseg: list)¶
Gets the ordered interval content of a pseg
- Parameters:
pseg – The pseg
- Returns:
The ordered interval content as a list
*Compatible with all Pitch modulos
- invert(pseg: list)¶
Inverts a pseg
- Parameters:
pseg – The pseg
- Returns:
The inverted pseg
*Compatible with all Pitch modulos
- make_pseg12(*args)¶
Makes a pseg
- Parameters:
args – Ps
- Returns:
A pseg
*Compatible only with chromatic psegs
- make_pseg24(*args)¶
Makes a pseg
- Parameters:
args – Ps
- Returns:
A pseg
*Compatible only with microtonal psegs
- multiply_order(pseg: list, n: int)¶
Multiplies a pseg’s order
- Parameters:
pseg – The pseg
n – The multiplier
- Returns:
The order-multiplied pseg
*Compatible with all Pitch modulos
- retrograde(pseg: list)¶
Retrogrades a pseg
- Parameters:
pseg – The pseg
- Returns:
The retrograded pseg
*Compatible with all Pitch modulos
- rotate(pseg: list, n: int)¶
Rotates a pseg
- Parameters:
pseg – The pseg
n – The index of rotation
- Returns:
The rotated pseg
*Compatible with all Pitch modulos