Half notes, 0.5 for eighth notes, 0.75 for dotted eighth notes, 0.333333333įor a triplet eighth, etc.). Single argument is a number then it is assumed to be a quarterLength (2 for If a single argument is passed to Duration() and it is a string, then it isĪssumed to be a type, such as ‘half’, ‘eighth’, or ‘16th’, etc. Some Duration objects are not expressible as a single notation unit. Notes, or may be used to split duration across barlines or beam groups. Multiple DurationTuples in a single Duration may be used to express tied Otherwise, expressionIsInferred is set to False, indicating that (such as splitElementsToCompleteTuplets())Ĭan express this Duration using another combination of components that sums to the A Duration created by setting quarterLength sets the attributeĮxpressionIsInferred to True, which indicates that callers Half tied to quintuplet sixteenth note” or simply “quarter note.”Ī Duration object is made of one or more immutable DurationTuple objects stored on theĬomponents list. For instance, “57 quarter notes” or “dotted Represents a span of musical time measurable in terms of quarter notes (or ![]() Duration ( typeOrDuration : t.Union = None, *, type : t.Optional = None, dots : t.Optional = None, quarterLength : t.Optional = None, durationTuple : t.Optional = None, components : t.Optional ] = None, client : t.Optional = None, ** keywords ) ¶ĭurations are one of the most important objects in music21. numberNotesNormal 2 Duration ¶ class music21.duration.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |