IntervalTheoryResult bases
IntervalTheoryResult methods
Color the notes in the interval as specified by noteList, 1 for the noteStart and 2 for the noteEnd default is to color all notes
return True if either the noteStart or the noteEnd has the editorial key .editorial.misc[miscKey] present and equal to a certain editorialValue (True by default)
sets the lyric of the notes as specified by noteList, default is to only label the noteEnd’s lyric
returns the calculated offset of the vlq, which is just the largest offset between the first notes in both lines
if leftAlign=True, returns the minimum instead
IntervalTheoryResult instance variables
Instance variables inherited from TheoryResult:
NoteTheoryResult bases
NoteTheoryResult methods
set the color of this note
NoteTheoryResult instance variables
Instance variables inherited from TheoryResult:
A TheoryResult object is used to store information about the results of the theory analysis. Each object includes a direct references to the original segment in the score, in addition to a textual description of the result found, and a value. Uses subclasses corresponding to the different types of objects
TheoryResult methods
Bass-class method to color the individual elements in the theory result object. Polymorphically colors the theory result objects based on the type of object.
TheoryResult instance variables
The color of the entire theory result object
The text associated with this theory result object, as generated by an identify() function
The value, typically a short string, associated with this theory result object, as generated by an identify() function
ThreeNoteLinearSegmentTheoryResult bases
ThreeNoteLinearSegmentTheoryResult methods
color all the notes in noteList (1,2,3). Default is to color only the second note red
ThreeNoteLinearSegmentTheoryResult instance variables
The actual ThreeNoteLinearSegment object associated with this theory result object
Instance variables inherited from TheoryResult:
VLQTheoryResult bases
VLQTheoryResult methods
Color the notes in the vlq as specified by noteList, which is a list of numbers 1-4 corresponding to the vlq map:
[ 1 2
3 4 ]
Default is to color all notes
return True if any of the four VLQTheoryResult notes have the editorial key .editorial.misc[miscKey] present and equal to a certain editorialValue (True by default)
Mark each note as specified in editorialMarkList with the editorialValue in Editorial.misc[editorialDictKey].
editorialMarkList is a list with the notenumber in the voiceleadingquartet to mark.
[ 1 2
3 4 ]
Default is to mark all four notes with the editorial.
returns the calculated offset of the vlq, which is just the maximum offset of all the notes inthe vlq
if leftAlign=True, returns the minimum instead
VLQTheoryResult instance variables
The actual VoiceLeadingQuartet object associated with this theory result object
Instance variables inherited from TheoryResult:
VerticalityNTupletTheoryResult bases
VerticalityNTupletTheoryResult methods
color the notes in partNum as specified by noteList (1,2,3, etc.)
editorialMarkDict is a dictionary denoting which object in the verticality Triplet to mark with the editorial object. the keys of the dictionary correspond to which vertical slice (0, 1, 2, etc.) and the editorialValues are a list of the partNums to mark.
VerticalityNTupletTheoryResult instance variables
Storate location for the part of importance that can be used later to color the results
The actual VerticalityNTuplet object associated with this theory result object
Instance variables inherited from TheoryResult:
VerticalityTheoryResult bases
VerticalityTheoryResult methods
color all the notes from parts in partList. Default is to color all notes form all parts
VerticalityTheoryResult instance variables
The actual Verticality object associated with this theory result object
Instance variables inherited from TheoryResult: