Skip to main content

Module formats

Module formats 

Source
Expand description

music21’s common.formats: the formats music21 reads and writes, by name and by file extension, as its converters register them.

Structs§

SubConverter
What one of music21’s converters registers itself for.

Constants§

SUB_CONVERTERS
music21’s converters, in the order its Converter.subConvertersList gives them where none has been registered: by class name, with the plain SubConverter last.
VALID_AUTO_DOWNLOAD
The answers the autoDownload setting takes: music21’s VALID_AUTO_DOWNLOAD.
VALID_SHOW_FORMATS
The formats show takes: music21’s VALID_SHOW_FORMATS.
VALID_WRITE_FORMATS
The formats write takes: music21’s VALID_WRITE_FORMATS, which are the show formats and RomanText.

Functions§

find_format
The format a name or an extension stands for and the extension it is written with, dot and all: music21’s findFormat.
find_format_ext_url
The format and extension a URL names, read from its query or from how it ends: music21’s findFormatExtURL.
find_input_extension
Each extension, dotted, that a format reads, the format given by name or by one of its extensions: music21’s findInputExtension.
regularize_format
The format a name, an abbreviation or an extension stands for, with or without its dot and with anything after a further dot ignored: music21’s Converter.regularizeFormat.
sub_converter_for_format
The converter registered for a format name, which is not an extension: music21’s findSubConverterForFormat, by its class.