Skip to main content

Module filetools

Module filetools 

Source
Expand description

music21’s common.fileTools, as far as it is not about Python objects.

Constants§

MAX_UNCOMPRESSED_BYTES
The most bytes music21 will uncompress from one member of a compressed file: 256 MiB.

Functions§

read_limited
Everything a reader holds, read a mebibyte at a time, or None as soon as it has given more than limit bytes. music21’s readZipMember reads a member so, rather than trusting the size its header claims.