music21.alpha.trecento.runTrecentoCadence¶
Python script to find out certain statistics about the trecento cadences
Functions¶
-
music21.alpha.trecento.runTrecentoCadence.
checkValidity
()¶
-
music21.alpha.trecento.runTrecentoCadence.
countTimeSig
()¶ counts how many time signatures of each type appear
-
music21.alpha.trecento.runTrecentoCadence.
makePDFfromPieces
(start=1, finish=2)¶ make a PDF from the pieces, in order of their PMFC volumes
>>> makePDFfromPieces(200, 209)
-
music21.alpha.trecento.runTrecentoCadence.
makePDFfromPiecesWithCapua
(start=2, finish=3)¶
-
music21.alpha.trecento.runTrecentoCadence.
sortByPMFC
(work)¶ Sort a work according to which one comes first in PMFC:
>>> from music21.alpha.trecento.runTrecentoCadence import sortByPMFC
>>> class Work(object): ... def __init__(self, id): ... self.id = id ...
>>> work1 = Work(1) >>> work1.pmfcVol = 5 >>> work1.pmfcPageStart = 20 >>> work2 = Work(2) >>> work2.pmfcVol = 5 >>> work2.pmfcPageStart = 10 >>> work3 = Work(3) >>> work3.pmfcVol = 2 >>> work3.pmfcPageStart = 50 >>> works = [work1, work2, work3] >>> works.sort(key=sortByPMFC) >>> print([w.id for w in works]) [3, 2, 1]