yield_all_pitch_class_sets

pitchtools.yield_all_pitch_class_sets()

Yields all pitch-class sets.

>>> all_pitch_class_sets = pitchtools.yield_all_pitch_class_sets()
>>> len(all_pitch_class_sets)
4096
>>> for pitch_class_set in all_pitch_class_sets[:20]:
...   pitch_class_set
PitchClassSet([])
PitchClassSet([0])
PitchClassSet([1])
PitchClassSet([0, 1])
PitchClassSet([2])
PitchClassSet([0, 2])
PitchClassSet([1, 2])
PitchClassSet([0, 1, 2])
PitchClassSet([3])
PitchClassSet([0, 3])
PitchClassSet([1, 3])
PitchClassSet([0, 1, 3])
PitchClassSet([2, 3])
PitchClassSet([0, 2, 3])
PitchClassSet([1, 2, 3])
PitchClassSet([0, 1, 2, 3])
PitchClassSet([4])
PitchClassSet([0, 4])
PitchClassSet([1, 4])
PitchClassSet([0, 1, 4])

There are 4096 pitch-class sets.

This is U* in [Morris 1987].

Returns list of numbered pitch-class sets.