Table Of Contents

Previous topic

music21.intervalNetwork

Next topic

music21.meter

music21.medren

Tools for working with medieval and Renaissance music – see also the trecento directory which works particularly on 14th-century Italian music.

music21.medren.convertHouseStyle(score, durationScale=2, barlineStyle=tick, tieTransfer=True, inPlace=False)
music21.medren.cummingSchubertStrettoFuga(score)
evaluates how well a given score works as a Stretto fuga would work at different intervals
music21.medren.scaleDurations(score, scalingNum=1, inPlace=True, scaleUnlinked=True)
scale all notes and TimeSignatures by the scaling amount. returns the Score object
music21.medren.setBarlineStyle(score, newStyle, oldStyle=regular, inPlace=True)
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.
music21.medren.testStretto()
music21.medren.transferTies(score, inPlace=True)
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

MensuralNote

Inherits from: Note, NotRest, GeneralNote, Music21Object, JSONSerializer

class music21.medren.MensuralNote(*arguments, **keywords)

MensuralNote attributes

Attributes without Documentation: scaling

Attributes inherited from Note: isNote, isRest, isUnpitched, beams, pitch

Attributes inherited from NotRest: stemDirection

Attributes inherited from GeneralNote: isChord, expressions, editorial, tie, lyrics, articulations

Attributes inherited from Music21Object: classSortOrder, hideObjectOnPrint, id, isSpanner, isStream, isWrapper, 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

Properties inherited from GeneralNote: quarterLength, color, lily, lyric, musicxml

Properties inherited from Music21Object: duration, activeSite, beat, beatDuration, beatStr, beatStrength, classes, derivationHierarchy, measureNumber, offset, priority

Properties inherited from JSONSerializer: json

MensuralNote methods

setModernDuration()
set the modern duration from

Methods inherited from Note: setAccidental(), transpose()

Methods inherited from NotRest: makeGrace()

Methods inherited from GeneralNote: addLyric(), augmentOrDiminish(), compactNoteInfo(), hasLyrics()

Methods inherited from Music21Object: addContext(), addLocation(), addLocationAndActiveSite(), freezeIds(), getAllContextsByClass(), getCommonSiteIds(), getCommonSites(), getContextAttr(), getContextByClass(), getOffsetBySite(), getSiteIds(), getSites(), getSpannerSites(), hasContext(), hasSpannerSite(), isClassOrSubclass(), mergeAttributes(), purgeLocations(), removeLocationBySite(), removeLocationBySiteId(), removeNonContainedLocations(), searchParentByAttr(), setContextAttr(), setOffsetBySite(), show(), splitAtDurations(), splitAtQuarterLength(), splitByQuarterLengths(), unfreezeIds(), unwrapWeakref(), wrapWeakref(), write()

Methods inherited from JSONSerializer: jsonAttributes(), jsonComponentFactory(), jsonPrint(), jsonRead(), jsonWrite()

Mensuration

Inherits from: TimeSignature, Music21Object, JSONSerializer

class music21.medren.Mensuration(tempus=perfect, prolation=minor, mode=perfect, maximode=None, scalingFactor=4)

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, isWrapper, 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

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: 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()