music.structures package

Submodules

music.structures.permutations module

class music.structures.permutations.InterestingPermutations(nelements=4, method='dimino')

Bases: object

Get permutations of n elements in meaningfull sequences.

mirrors are ordered by swaps (0,n-1..)

evenOdd(sequence)
getAlternating()
getFullSymmetry()
getMirrors()
getRotations()

method dimino or coset

getSwaps()
music.structures.permutations.dist(swap)
music.structures.permutations.transposePermutation(permutation, step=1)

music.structures.symmetry module

Module contents