Expand description
Finding where a written-out score breaks the voice-leading rules:
music21’s figuredBass.checker.
Where super::possibility says whether a voicing breaks a rule, this
says which parts do, numbered from one, the highest. A part that is
resting holds REST_PS in its place and is passed over by every rule.
The consecutive rules find their candidates by interval alone and leave
the deciding to a VoiceLeadingQuartet; candidates and
breaks_rule are the two halves, so a caller keeping a table of
quartets already decided, as music21 does, asks only for the new ones.
Enums§
- Consecutive
Rule - The rules over two possibilities in a row.
Constants§
- REST_PS
- The pitch space a resting part is given in a possibility: music21’s
POSSIBILITY_REST_PS.
Functions§
- breaks_
rule - Whether the lower part moving from
lower.0tolower.1against the higher moving fromhigher.0tohigher.1breaks the rule, as music21’sVoiceLeadingQuartetdecides it. - candidates
- The pairs of parts, as part numbers, whose move from
atobstands at the rule’s interval and so needsbreaks_ruleto decide it. For a hidden rule that is the outer parts or nothing. - is_rest
- Whether a pitch stands for a resting part.
- violations
- Every pair of parts, as part numbers, that breaks the rule moving from
atob: music21’schecker.parallelFifthsand its three siblings. - voice_
crossings - Every pair of parts, as part numbers, where a higher part sings below
a lower one: music21’s
checker.voiceCrossing.