Expand description
Two-voice voice-leading classification and parallel-interval checks.
Two-voice voice-leading checks, a port of music21’s VoiceLeadingQuartet.
A quartet is two consecutive notes in an upper voice and two in a lower voice. It classifies how the voices move between them and finds the parallel and hidden perfect intervals that common-practice counterpoint forbids.
Structs§
- Quartet
Options - Which quartets
iterate_all_voice_leading_quartetsgives: music21’s keyword arguments of the same names, with its defaults. - Voice
Leading Quartet - Two consecutive notes in each of two voices. Voice one is the upper voice.
Enums§
- Motion
Type - How two voices move relative to each other.
- Parallel
Requirement - What a caller may ask of a parallel motion.
Functions§
- iterate_
all_ voice_ leading_ quartets - Every
VoiceLeadingQuartetin a stream, generally a score: music21’siterateAllVoiceLeadingQuartets. - verticality_
at - What is sounding or standing in each part at an offset, part by part:
music21’s
getVerticalityFromObject, asked by offset since a stream here owns its notes and an offset is what says where one is. - verticality_
positions_ at verticality_atby position: for each part holding anything at the offset, the part’s index and the positions inStream::leavesof what it holds there, for a caller that keeps something of its own beside each element.- voice_
leading_ quartet_ positions - Where the four notes of every quartet
iterate_all_voice_leading_quartetsfinds stand in the stream: each quartet as the offset it is found at and the positions inStream::leavesof itsv1n1,v1n2,v2n1andv2n2, in that order. This is the walk itself, for a caller that keeps something of its own beside each note and wants that back rather than a copy of the pitch; the offset is what music21’sreversewalks backwards by, since a voice held through has its notes start earlier.