Tools for working with medieval and Renaissance music – see also the trecento directory which works particularly on 14th-century Italian music.
evaluates how well a given score works as a Stretto fuga would work at different intervals
scale all notes and TimeSignatures by the scaling amount.
returns the Score object
Converts any right barlines in the previous style (oldStyle; default = ‘regular’) to have the newStyle (such as ‘tick’, ‘none’, etc., see bar.py). Leaves alone any other barline types (such as double bars, final bars, etc.). Also changes any measures with no specified barlines (which come out as ‘regular’) to have the new style.
returns the Score object.
transfer the duration of tied notes (if possible) to the first note and fill the remaining places with invisible rests:
returns the new Score object
Inherits from: Note, NotRest, GeneralNote, Music21Object, JSONSerializer
MensuralNote attributes
Attributes without Documentation: scaling
Attributes inherited from Note: isNote, isRest, isUnpitched, beams, pitch
Attributes inherited from GeneralNote: isChord, expressions, editorial, tie, lyrics, articulations
Attributes inherited from Music21Object: classSortOrder, hideObjectOnPrint, id, isSpanner, isStream, groups
MensuralNote properties
Properties inherited from Note: nameWithOctave, pitchClass, accidental, diatonicNoteNum, freq440, frequency, fullName, microtone, midi, midiEvents, midiFile, mx, name, octave, pitchClassString, pitchNames, pitches, ps, step
Properties inherited from NotRest: isGrace, notehead, noteheadFill, noteheadParen, stemDirection, volume
Properties inherited from GeneralNote: quarterLength, color, lily, lyric, musicxml
Properties inherited from Music21Object: duration, activeSite, beat, beatDuration, beatStr, beatStrength, classes, derivationHierarchy, measureNumber, offset, priority, seconds
Properties inherited from JSONSerializer: json
MensuralNote methods
- setModernDuration()¶
set the modern duration from
Methods inherited from Note: jsonAttributes(), setAccidental(), transpose()
Methods inherited from NotRest: makeGrace()
Methods inherited from GeneralNote: addLyric(), augmentOrDiminish(), compactNoteInfo(), hasLyrics(), insertLyric()
Methods inherited from Music21Object: addContext(), addLocation(), addLocationAndActiveSite(), freezeIds(), getAllContextsByClass(), getCommonSiteIds(), getCommonSites(), getContextAttr(), getContextByClass(), getOffsetBySite(), getSiteIds(), getSites(), getSpannerSites(), hasContext(), hasSpannerSite(), isClassOrSubclass(), mergeAttributes(), next(), previous(), purgeLocations(), removeLocationBySite(), removeLocationBySiteId(), removeNonContainedLocations(), searchActiveSiteByAttr(), setContextAttr(), setOffsetBySite(), show(), splitAtDurations(), splitAtQuarterLength(), splitByQuarterLengths(), unfreezeIds(), unwrapWeakref(), wrapWeakref(), write()
Methods inherited from JSONSerializer: jsonComponentFactory(), jsonPrint(), jsonRead(), jsonWrite()
Inherits from: TimeSignature, Music21Object, JSONSerializer
An object representing a mensuration sign in early music:
>>> from music21 import *
>>> ODot = medren.Mensuration(tempus = 'perfect', prolation = 'major', scalingFactor = 2)
>>> ODot.barDuration.quarterLength
9.0
Mensuration attributes
Attributes without Documentation: standardSymbol, tempus, prolation, maximode, mode
Attributes inherited from TimeSignature: classSortOrder, inherited, beamSequence, symbolizeDenominator, symbol, beatSequence, summedNumerator, displaySequence, accentSequence
Attributes inherited from Music21Object: hideObjectOnPrint, id, isSpanner, isStream, groups
Mensuration properties
Properties inherited from TimeSignature: barDuration, beatCount, beatCountName, beatDivisionCount, beatDivisionCountName, beatDivisionDurations, beatDuration, beatLengthToQuarterLengthRatio, beatSubDivisionDurations, classification, denominator, lily, musicxml, mx, numerator, quarterLengthToBeatLengthRatio, totalLength
Properties inherited from Music21Object: activeSite, beat, beatStr, beatStrength, classes, derivationHierarchy, duration, measureNumber, offset, priority, seconds
Properties inherited from JSONSerializer: json
Mensuration methods
Methods inherited from TimeSignature: getAccent(), getAccentWeight(), getBeams(), getBeat(), getBeatDepth(), getBeatDuration(), getBeatOffsets(), getBeatProgress(), getBeatProportion(), getBeatProportionStr(), getOffsetFromBeat(), load(), loadRatio(), quarterPositionToBeat(), ratioEqual(), setAccentWeight(), setDisplay()
Methods inherited from Music21Object: searchActiveSiteByAttr(), getContextAttr(), setContextAttr(), addContext(), addLocation(), addLocationAndActiveSite(), freezeIds(), getAllContextsByClass(), getCommonSiteIds(), getCommonSites(), getContextByClass(), getOffsetBySite(), getSiteIds(), getSites(), getSpannerSites(), hasContext(), hasSpannerSite(), isClassOrSubclass(), mergeAttributes(), next(), previous(), purgeLocations(), removeLocationBySite(), removeLocationBySiteId(), removeNonContainedLocations(), setOffsetBySite(), show(), splitAtDurations(), splitAtQuarterLength(), splitByQuarterLengths(), unfreezeIds(), unwrapWeakref(), wrapWeakref(), write()
Methods inherited from JSONSerializer: jsonAttributes(), jsonComponentFactory(), jsonPrint(), jsonRead(), jsonWrite()