Skip to main content

Module work

Module work 

Source
Expand description

The core corpus’s directories and the works in each: music21’s corpus.work and Corpus.getComposer.

Structs§

CorpusFile
One file of a work: music21’s CorpusFile.
CorpusWork
A work of a directory and its files: music21’s CorpusWork.
Directory
One directory of the corpus: its name on disk, the composer or collection it holds, and whether that is a composer.

Enums§

Holder
Whose works a directory holds.

Constants§

CORE_DIRECTORIES
The core corpus’s directories, in music21’s order: its CoreCorpus._directoryInformation.

Functions§

composer_paths
The paths that belong to a composer or collection: those with a part, or a part’s name before its last dot, of that name, ignoring case. Sorted, as music21’s getComposer answers them.
find_works
The works a directory’s files make, in the order their files first come: music21’s DirectoryInformation.findWorks. A file is placed after the first place the directory’s name appears in its path; a file whose format is not known is left out.