MSCORE3(1)

πŸ“¦
version 3.2.3 Β· 3 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

okay bestie, sit down, hydrate, because we're about to read the manual for mscore3(1) β€” straight out of the General Commands Manual β€” and it's literally the sheet music editor of your dreams. πŸ’–

✨ NAME ✨

mscore3, musescore3 β€” MuseScore 3 sheet music editor 🎼


🌸 SYNOPSIS 🌸

mscore3 [-deFfhIiLmnOPRstvw] [-a | --use-audio driver]
        [-b | --bitrate bitrate] [-c | --config-folder pathname]
        [-D | --monitor-resolution DPI]
        [-E | --install-extension extension file] [-j | --job file.json]
        [-M | --midi-operations file] [-o | --export-to file]
        [-p | --plugin name] [-r | --image-resolution DPI]
        [-S | --style style] [-T | --trim-image margin]
        [-x | --gui-scaling factor] [--debug] [--diff] [--dump-midi-in]
        [--dump-midi-out] [--experimental] [--export-score-parts]
        [--factory-settings] [--force] [--help] [--layout-debug]
        [--load-icons] [--long-version] [--new-score]
        [--no-fallback-font] [--no-midi] [--no-synthesizer]
        [--no-webview] [--raw-diff] [--revert-settings]
        [--run-test-script] [--score-media] [--score-mp3]
        [--score-parts-pdf] [--template-mode] [--test-mode] [--version]
        [file ...]

πŸ¦‹ DESCRIPTION πŸ¦‹

MuseScore is a Free and Open Source WYSIWYG cross-platform multi-lingual music composition and notation software, released under the GNU General Public Licence (GPLv2). no cap, that's the whole vibe. πŸ‘‘

Running mscore3 with zero extra options launches the full graphical MuseScore program and opens any files you dropped on the command line. just you, your score, and main character energy. ✨

The options are as follows:

  • -a | --use-audio driver β€” pick your audio driver, bestie. one of jack, alsa, portaudio, pulse.
  • -b | --bitrate bitrate β€” sets the MP3 output bitrate, measured in kbit/s.
  • -c | --config-folder pathname β€” overrides the configuration and settings directory. your settings, your rules. πŸ’…
  • -D | --monitor-resolution DPI β€” tells it your monitor resolution (overrides autodetection, because sometimes it just guesses wrong 😭).
  • -d | --debug β€” starts MuseScore in debug mode. detective era. πŸ”
  • -E | --install-extension extension file β€” installs an extension file. soundfonts get loaded by default unless -e is also specified. iykyk.
  • -e | --experimental β€” turns on experimental features, like layers. living on the edge, fr fr. πŸ§ͺ
  • -F | --factory-settings β€” uses only the standard built-in presets ("factory settings") and deletes your user preferences. compare with the -R option. be so careful with this one omg πŸ’€
  • -f | --force β€” ignores score corruption and version mismatch warnings in "converter mode". chaotic but valid.
  • -h | --help β€” displays an overview of invocation instructions. the classic.
  • -I | --dump-midi-in β€” displays all MIDI input on the console.
  • -i | --load-icons β€” loads icons from the filesystem; useful if you want to edit the MuseScore icons and preview the changes. custom icon era πŸŽ€
  • -j | --job file.json β€” processes a conversion job (peep "EXAMPLES" below).
  • -L | --layout-debug β€” starts MuseScore in layout debug mode.
  • -M | --midi-operations file β€” specifies the MIDI import operations file (peep "EXAMPLES" below).
  • -m | --no-midi β€” disables MIDI input.
  • -n | --new-score β€” starts with the New Score wizard, regardless of whether it's enabled or disabled in the user preferences. we love a fresh start 🌱
  • -O | --dump-midi-out β€” displays all MIDI output on the console.
  • -o | --export-to file β€” exports the given (or currently opened) file to the specified output file. the file type depends on the extension of the filename you give it. this option switches to "converter mode" and avoids the graphical user interface.
  • -P | --export-score-parts β€” when converting to PDF with the -o option, appends each part's pages to the created PDF file. if the score has no parts, all default parts will temporarily be generated automatically. so generous of it 🫢
  • -p | --plugin name β€” executes the named plugin.
  • -R | --revert-settings β€” uses only the standard built-in presets ("factory settings") but does not delete user preferences; compare with the -F option. the gentle version, we stan.
  • -r | --image-resolution DPI β€” sets the image resolution for conversion to PNG files.
    • Default: 300 DPI (actually, the value of "Resolution" of the PNG option group in the Export tab of the preferences).
  • -S | --style style β€” loads a style file first; useful for use with the -o option.
  • -s | --no-synthesizer β€” disables the integrated software synthesiser.
  • -T | --trim-image margin β€” trims exported PNG and SVG images to remove whitespace surrounding the score. the specified margin, in pixels, will be retained (use 0 for a tightly cropped image). when exporting to SVG, this option only works with single-page scores. crop it, slay it βœ‚οΈ
  • -t | --test-mode β€” sets the test mode flag for all files.
  • -v | --version β€” displays the name and version of the application without starting the graphical user interface.
  • -w | --no-webview β€” disables the web view component in the Start Centre.
  • -x | --gui-scaling factor β€” scales the score display and other GUI elements by the specified factor; intended for use with high-resolution displays. retina girlies rise πŸ™Œ
  • --diff β€” prints a conditioned diff between the given scores.
  • --long-version β€” displays the full name, version and git revision of the application without starting the graphical user interface.
  • --no-fallback-font β€” don't use Bravura as fallback musical font.
  • --raw-diff β€” prints a raw diff between the given scores.
  • --run-test-script β€” runs script tests listed in the command line arguments.
  • --score-media β€” exports all media (except MP3) for a given score as a single JSON document to stdout.
  • --score-mp3 β€” generates an MP3 for the given score and exports it as a single JSON document to stdout.
  • --score-parts-pdf β€” generates parts data for the given score and exports it as a single JSON document to stdout.
  • --template-mode β€” saves files in template mode (e.g. without page sizes).

MuseScore supports the automatic Qt command line options (see below).


πŸŽ€ Batch conversion job JSON format πŸŽ€

The argument to the -j option must be the pathname of a file comprised of a valid JSON document honouring the following specification. listen closely bestie, this part is structured:

  • The top-level element must be a JSONArray, which may be empty.
  • Each array element must be a JSONObject with the following keys:
    • in β€” value is the name of the input file (score to convert), as JSONString.
    • plugin β€” value is the filename of a plugin (with the .qml extension), which will be read from either the global or per-user plugin path and executed before the conversion output happens, as JSONString. optional, but at least one of plugin and out must be given.
    • out β€” value is the conversion output target, as defined below. optional, but at least one of plugin and out must be given.
  • The conversion output target may be a filename (with extension, which decided the format to convert to), as JSONString.
  • The conversion output target may be a JSONArray of filenames as JSONString, as above, which will cause the score to be written to multiple output files (in multiple output formats) sequentially, without being closed, re-opened and re-processed in between. efficiency icon ✨
  • If the conversion output target is a JSONArray, one or more of its elements may also be, each, a JSONArray of two JSONStrings (called first and second half in the following description). this will cause part extraction: for each such two-tuple, all extant parts of the score will be saved individually, with filenames being composed by concatenating the first half, the name (title) of the part, and the second half. the resulting string must be a valid filename (with extension, determining the output format). if a score has no parts (excerpts) defined, this will be silently ignored without error. no drama, no warning.
  • Valid file extensions for output are:
    • flac β€” Free Lossless Audio Codec (compressed audio)
    • metajson β€” various score metadata (JSON)
    • mid β€” standard MIDI file
    • mlog β€” internal file sanity check log (JSON)
    • mp3 β€” MPEG Layer III (lossy compressed audio)
    • mpos β€” measure positions (XML)
    • mscx β€” uncompressed MuseScore file
    • mscz β€” compressed MuseScore file
    • musicxml β€” uncompressed MusicXML file
    • mxl β€” compressed MusicXML file
    • ogg β€” OGG Vorbis (lossy compressed audio)
    • pdf β€” portable document file (print)
    • png β€” portable network graphics (image)
      • Individual files, one per score page, with a hyphen-minus followed by the page number placed before the file extension, will be generated.
    • spos β€” segment positions (XML)
    • svg β€” scalable vector graphics (image)
    • wav β€” RIFF Waveform (uncompressed audio)
    • xml β€” uncompressed MusicXML file

See below for an example. (patience, bestie, it's coming πŸ’–)


🌈 ENVIRONMENT 🌈

  • SKIP_LIBJACK β€” set this (the value does not matter) to skip initialisation of the JACK Audio Connection Kit library, in case it causes trouble. πŸ›Ÿ
  • XDG_CONFIG_HOME β€” user configuration location; defaults to ~/.config if unset.
  • XDG_DATA_HOME β€” user data location; defaults to ~/.local/share if unset.
  • XDG_DOCUMENTS_DIR β€” location of works the user created with the application; defaults to ~/Documents (or a localised version) and can be set in $XDG_CONFIG_HOME/user-dirs.dirs.
note that MuseScore also supports the normal Qt environment variables such as QT_QPA_GENERIC_PLUGINS, QT_QPA_PLATFORM, QT_QPA_PLATFORMTHEME, QT_QPA_PLATFORM_PLUGIN_PATH, QT_STYLE_OVERRIDE, DISPLAY, etc.

🌸 FILES 🌸

Bestie, here's where everything lives on your disk, so listen up πŸ’–

  • /usr/share/mscore3-3.2/ β€” this is the application support data home base. Inside you'll find demos, instruments, localisation, system-wide plugins, soundfonts, styles, chords, templates and wallpapers. All the good stuff πŸŽ€
Heads up tho: in the Debian packages, the system-wide soundfonts don't chill there β€” they get installed into /usr/share/sounds/sf2/, /usr/share/sounds/sf3/ or /usr/share/sounds/sfz/, respectively, instead. iykyk πŸ’…

Your per-user data (extensions, plugins, soundfonts, styles, templates) and files (images, scores) normally get installed into subdirectories under $XDG_DOCUMENTS_DIR/MuseScore3/ β€” but ngl, that can be changed in the configuration ✨

Important note fr fr: snapshot, alpha and beta versions use MuseScore3Development instead of MuseScore3 in all of these paths. Don't get caught slipping πŸ’€

  • $XDG_CONFIG_HOME/MuseScore/MuseScore3.ini β€” this lil file holds your user preferences, the list of recently used files and their locations, window sizes and positions, etc. See above for development version paths πŸ‘€
  • $XDG_DATA_HOME/MuseScore/MuseScore3/ β€” and this one contains updated localisation files downloaded from within the program, plugin information, cached scores, credentials for the musescore.com community site, session information, synthesiser settings, custom key and time signatures and shortcuts. See above for development version paths πŸ¦‹

✨ EXAMPLES ✨

Okay so converting a score to PDF straight from the command line? Iconic, main character energy πŸ‘‘

mscore3 -o 'My Score.pdf' 'My Score.mscz'

Wanna run a batch job converting multiple documents? Say less:

mscore3 -j job.json

This requires the file job.json in the current working directory to have content similar to the following:

[
  {
    "in": "Reunion.mscz",
    "out": "Reunion-coloured.pdf",
    "plugin": "colornotes.qml"
  },
  {
    "in": "Reunion.mscz",
    "out": [
      "Reunion.pdf",
      [ "Reunion (part for ", ").pdf" ],
      "Reunion.musicxml",
      "Reunion.mid"
    ]
  },
  {
    "in": "Piece with excerpts.mscz",
    "out": [
      "Piece with excerpts (Partitura).pdf",
      [ "Piece with excerpts (part for ", ").pdf" ],
      "Piece with excerpts.mid"
    ]
  }
]

The last part of the job would, for example, cause files like β€œPiece with excerpts (part for Violin).pdf” to be generated alongside the conductor's partitura and a MIDI file with the full orchestra sound 🌈 β€” whereas the equivalent part of the Reunion conversion will be silently ignored (because the Reunion piece (a MuseScore demo) has no excerpts defined). Not a bug bestie, just how it is πŸ’…


https://musescore.org/sites/musescore.org/files/midi_import_options_0.xml is a sample MIDI import operations file for the -M option. Bookmark it πŸ“Œ


πŸ’€ DIAGNOSTICS πŸ’€

The mscore3 utility exits 0 on success, and >0 if an error occurs. Simple as that 🫢


πŸ‘€ SEE ALSO πŸ‘€

Please check first to if the bug you're encountering has already been reported. If you just need help with something, then please use the support forum (see above) instead. Like, fr, don't file a bug when you just need a lil help bestie πŸ™ˆ

⭐ STANDARDS ⭐

MuseScore attempts to implement the following standards (slay πŸ’…):

  • MusicXML 3.1 (score interchange format)
  • SF2 (SoundFont 2.01)
  • SF3 (SoundFont with OGG Vorbis-compressed samples)
  • SFZ (Sforzato soundfont)
  • SMuFL (Standard Music Font Layout 1.20)

πŸ•°οΈ HISTORY πŸ•°οΈ

MuseScore was split off the MusE sequencer in 2002 and has since become the foremost Open Source notation software. Glow up of the century honestly πŸ‘‘


🫢 AUTHORS 🫢

MuseScore is developed by Werner Schweer and others.

This manual page was written by mirabilos <tg@debian.org>.


πŸŽ€ CAVEATS πŸŽ€

The automatic Qt command line options are removed from the argument vector before the application has a chance at option processing. This means that an invocation like

mscore3 -S -reverse

has no chance at working because the -reverse is removed by Qt first. RIP to that flag, it never even made it to the party πŸ’€


😭 BUGS 😭

  • MuseScore does not honour /etc/papersize.
  • Probably some more; check the project's bug tracker (cf. β€œSEE ALSO”).

And that's a wrap bestie!! πŸŽ‰ This page is from MuseScore's manual, dated March 20, 2019 β€” mscore3, version 3.2 era. Go forth and notate, you gorgeous genius you πŸ’œπŸŽ€βœ¨

πŸ“¦ where this page comes from