Skip to main content

Module locate

Module locate 

Source
Expand description

Where MuseScore is installed, and the numbered pages it writes when it turns a score into PNG images: music21’s converter.museScore, less the running of the program. It reads directories and nothing else.

Structs§

ImageRequest
How MuseScore is asked to write a score as an image.
PageRange
The number of the last page and how many digits each page’s number has.

Enums§

PageError
Why a page could not be found or read, each with music21’s message.

Functions§

default_directories
The directories MuseScore is looked for in when none are given: the applications folders on a Mac, the program folders on Windows and the search path elsewhere.
find
MuseScore 3 or newer, found in the directories given, or nowhere: the newest where several are, by the name of the path under its directory. music21’s findMuseScore.
first_page
The first page MuseScore wrote for an image asked for at a path ending in .png: score-1.png, score-01.png and so on, whichever is there. music21’s findNumberedPNGPath.
image_command
The command line that has MuseScore write input as output: music21’s runThroughMuseScore, -T for trimming and -r for resolution.
is_before_three
Whether a name is of MuseScore 1 or 2, which cannot make the images: music21’s MuseScore ?[12]\b, any case.
last_page
The last page MuseScore wrote beside a numbered one: for abc-01.png, the last abc-*.png by name. music21’s findLastPNGPath.
page_range
How many pages MuseScore wrote and how many digits number them, from the first page and the last: music21’s findPNGRange.
patterns
The executable inside each MuseScore installation, as a pattern under a directory it is installed in, newest naming first where a name does not say which version it is.