orbichord/generator.py
def run(self) -> Iterator[Chord]:
        """Generate a sequence of chords.

        Yields
        ------
            Iterator[Chord]
                An iterator to the chords in the space.
        """
        # List of identified chords
        vetoed_chords = set()

        # Sample the chord space as combination with
        # replacement of the scale pitches.
        for ntuple in self._combinator(
            self._pitches, self._dimension
        ):
            # Generate the chord
            chord = IdentifiedChord(
                identify = self._identify,
                notes = self._copy_fix_octaves(ntuple)
            )
            # Veto identical chords
            if chord in vetoed_chords:
                continue
            vetoed_chords.add(chord)
            # select the chord?
            if self._select and not self._select(chord):
                continue
            yield chord
Generate a sequence of chords.

        Yields
        ------
            Iterator[Chord]
                An iterator to the chords in the space.
        
Generate a sequence of chords.
Yields

Iterator[Chord]
An iterator to the chords in the space.
Generate a sequence of chords . Yields Iterator [ Chord ] An iterator to the chords in the space .
def run(self) -> Iterator[Chord]:
        vetoed_chords = set()
        for ntuple in self._combinator(
            self._pitches, self._dimension
        ):
            chord = IdentifiedChord(
                identify = self._identify,
                notes = self._copy_fix_octaves(ntuple)
            )
            if chord in vetoed_chords:
                continue
            vetoed_chords.add(chord)
            if self._select and not self._select(chord):
                continue
            yield chord
def run ( self ) -> Iterator [ Chord ] : vetoed_chords = set ( ) for ntuple in self . _combinator ( self . _pitches , self . _dimension ) : chord = IdentifiedChord ( identify = self . _identify , notes = self . _copy_fix_octaves ( ntuple ) ) if chord in vetoed_chords : continue vetoed_chords . add ( chord ) if self . _select and not self . _select ( chord ) : continue yield chord
Generate a sequence of chords.
Generate a sequence of chords .
"""Generate a sequence of chords.

        Yields
        ------
            Iterator[Chord]
                An iterator to the chords in the space.
        """ # List of identified chords # Sample the chord space as combination with # replacement of the scale pitches. # Generate the chord # Veto identical chords # select the chord?
self