This module provides the base class for all RepeatMark objects: entities that denote repeats. Some RepeatMark objects are Expression objects; others are Bar objects.
Inherits from: RepeatExpressionCommand, RepeatExpression, RepeatMark, Expression, Music21Object, JSONSerializer
Jump to the sign. Presumably a forward jump, not a repeat.
>>> from music21 import *
>>> rm = repeat.DaCapoAlFine()
Inherits from: RepeatExpressionMarker, RepeatExpression, RepeatMark, Expression, Music21Object, JSONSerializer
The coda symbol, or the word coda, as placed in a score.
>>> from music21 import *
>>> rm = repeat.Coda()
Inherits from: RepeatExpressionCommand, RepeatExpression, RepeatMark, Expression, Music21Object, JSONSerializer
Inherits from: RepeatExpressionCommand, RepeatExpression, RepeatMark, Expression, Music21Object, JSONSerializer
The Da Capo al Coda command, indicating a return to the beginning and a continuation to the Coda object. The music resumes at a second Coda object. By default, repeatAfterJump is False, indicating that any repeats encountered on the Da Capo repeat not be repeated.
>>> from music21 import *
>>> rm = repeat.DaCapoAlCoda()
Inherits from: RepeatExpressionCommand, RepeatExpression, RepeatMark, Expression, Music21Object, JSONSerializer
The Da Capo al Fine command, indicating a return to the beginning and a continuation to the Fine object. By default, repeatAfterJump is False, indicating that any repeats encountered on the Da Capo repeat not be repeated.
>>> from music21 import *
>>> rm = repeat.DaCapoAlFine()
Inherits from: RepeatExpressionCommand, RepeatExpression, RepeatMark, Expression, Music21Object, JSONSerializer
The Dal Segno command, indicating a return to the segno and a continuation to the end. By default, repeatAfterJump is False, indicating that any repeats encountered on the Da Capo repeat not be repeated.
>>> from music21 import *
>>> rm = repeat.DaCapoAlFine()
Inherits from: RepeatExpressionCommand, RepeatExpression, RepeatMark, Expression, Music21Object, JSONSerializer
The Dal Segno al Coda command, indicating a return to the beginning and a continuation to the Coda object. The music resumes at a second Coda object. By default, repeatAfterJump is False, indicating that any repeats encountered on the Da Segno repeat not be repeated.
>>> from music21 import *
>>> rm = repeat.DaCapoAlCoda()
Inherits from: RepeatExpressionCommand, RepeatExpression, RepeatMark, Expression, Music21Object, JSONSerializer
The Dal Segno al Fine command, indicating a return to the segno and a continuation to the Fine object. By default, repeatAfterJump is False, indicating that any repeats encountered on the Dal Segno repeat not be repeated.
>>> from music21 import *
>>> rm = repeat.DaCapoAlFine()
Expand a single Part or Part-like Stream with repeats. Nested repeats given with Repeat objects, or repeats and sections designated with RepeatExpression objects, are all expanded. This class is a utility processor. Direct usage is more commonly from the expandRepeats() method.
Expander methods
- isExpandable()¶
- Return True or False if this Stream is expandable, that is, if it has balanced repeats or sensible da copo or dal segno indications.
- process()¶
- Process all repeats. Note that this processing only happens for Measures contained in the given Stream. Other objects in that Stream are neither processed nor copied.
Inherits from: RepeatExpressionMarker, RepeatExpression, RepeatMark, Expression, Music21Object, JSONSerializer
The fine word as placed in a score.
>>> from music21 import *
>>> rm = repeat.Fine()
Inherits from: RepeatMark, Expression, Music21Object, JSONSerializer
This class models any mark added to a Score to mark repeat start and end points that are designated by text expressions or symbols. Repeat(Barline) objects are not RepeatExpression objects, but both are RepeatMark subclasses. This class stores internally a TextExpression. This object is used for rendering text output in translation. A properly configured TextExpression object can also be used to create an instance of a RepeatExpressions.
RepeatExpression attributes
Attributes without Documentation: useSymbol
Attributes inherited from Music21Object: classSortOrder, hideObjectOnPrint, id, isSpanner, isStream, isWrapper, groups
RepeatExpression properties
Properties inherited from Music21Object: activeSite, beat, beatDuration, beatStr, beatStrength, classes, derivationHierarchy, duration, measureNumber, offset, priority
Properties inherited from JSONSerializer: json
RepeatExpression methods
- applyTextFormatting(te=None)¶
- Apply the default text formatting to the text expression version of of this repeat
- getText()¶
- Get the text used for this expression.
- getTextExpression()¶
- Return a copy of the TextExpression stored in this object.
- isValidText(value)¶
- Return True or False if the supplied text could be used for this RepeatExpression.
- setText(value)¶
- Set the text of this repeat expression. This is also the primary way that the stored TextExpression object is created.
- setTextExpression(value)¶
- Directly set a TextExpression object.
Methods inherited from Music21Object: searchParentByAttr(), getContextAttr(), setContextAttr(), addContext(), addLocation(), addLocationAndActiveSite(), freezeIds(), getAllContextsByClass(), getCommonSiteIds(), getCommonSites(), getContextByClass(), getOffsetBySite(), getSiteIds(), getSites(), getSpannerSites(), hasContext(), hasSpannerSite(), isClassOrSubclass(), mergeAttributes(), purgeLocations(), removeLocationBySite(), removeLocationBySiteId(), removeNonContainedLocations(), setOffsetBySite(), show(), splitAtDurations(), splitAtQuarterLength(), splitByQuarterLengths(), unfreezeIds(), unwrapWeakref(), wrapWeakref(), write()
Methods inherited from JSONSerializer: jsonAttributes(), jsonComponentFactory(), jsonPrint(), jsonRead(), jsonWrite()
Inherits from: RepeatExpression, RepeatMark, Expression, Music21Object, JSONSerializer
Some repeat expressions are commands, instructing the reader to go somewhere else. DaCapo and related are examples.
RepeatExpressionCommand attributes
Attributes without Documentation: repeatAfterJump
Attributes inherited from RepeatExpression: useSymbol
Attributes inherited from Music21Object: classSortOrder, hideObjectOnPrint, id, isSpanner, isStream, isWrapper, groups
RepeatExpressionCommand properties
Properties inherited from Music21Object: activeSite, beat, beatDuration, beatStr, beatStrength, classes, derivationHierarchy, duration, measureNumber, offset, priority
Properties inherited from JSONSerializer: json
RepeatExpressionCommand methods
Methods inherited from RepeatExpression: applyTextFormatting(), getText(), getTextExpression(), isValidText(), setText(), setTextExpression()
Methods inherited from Music21Object: searchParentByAttr(), getContextAttr(), setContextAttr(), addContext(), addLocation(), addLocationAndActiveSite(), freezeIds(), getAllContextsByClass(), getCommonSiteIds(), getCommonSites(), getContextByClass(), getOffsetBySite(), getSiteIds(), getSites(), getSpannerSites(), hasContext(), hasSpannerSite(), isClassOrSubclass(), mergeAttributes(), purgeLocations(), removeLocationBySite(), removeLocationBySiteId(), removeNonContainedLocations(), setOffsetBySite(), show(), splitAtDurations(), splitAtQuarterLength(), splitByQuarterLengths(), unfreezeIds(), unwrapWeakref(), wrapWeakref(), write()
Methods inherited from JSONSerializer: jsonAttributes(), jsonComponentFactory(), jsonPrint(), jsonRead(), jsonWrite()
Inherits from: RepeatExpression, RepeatMark, Expression, Music21Object, JSONSerializer
Inherits from: RepeatExpressionMarker, RepeatExpression, RepeatMark, Expression, Music21Object, JSONSerializer
The fine word as placed in a score.
>>> from music21 import *
>>> rm = repeat.Segno()