MCPcopy
hub / github.com/LibreScore/dl-librescore

github.com/LibreScore/dl-librescore @v0.35.40 sqlite

repository ↗ · DeepWiki ↗ · release v0.35.40 ↗
129 symbols 229 edges 21 files 2 documented · 2%
README

čeština | ‎English | ‎español | ‎français | ‎magyar | ‎Melayu | ‎русский | ‎简体中文 | ‎[+]

dl-librescore

LibreScore logo

Discord Weblate Github All Releases Github All Releases npm

Download sheet music

DISCLAIMER: This is not an officially endorsed MuseScore product

Installation

There are 4 different installable programs:

Program MSCZ MIDI MP3 PDF Conversion Windows macOS Linux Android iOS/iPadOS
App ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
Userscript ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
Command-line tool ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
Webmscore website ✔️ ✔️ ✔️ ✔️ ✔️ ✔️

Note: Conversion refers to the ability to convert files into other file types, including those not downloadable in the program. Conversion types include: Individual Parts, PDF, PNG, SVG, MP3, WAV, FLAC, OGG, MIDI, MusicXML, MSCZ, and MSCX.

App

  1. Go to the README page of the app-librescore repository
  2. Follow the installation instructions for your device

Userscript

Note: If your device is on iOS or iPadOS, please follow the Shortcut instructions.

Note: If you cannot install browser extensions on your device, please follow the Bookmark instructions instead.

Browser extension

  1. Install Tampermonkey

Note: If you already installed an old version of the script called "musescore-downloader", "mcsz downloader", or "musescore-dl", please uninstall it from the Tampermonkey dashboard

  1. Go to the latest dl-librescore.user.js file
  2. Press the Install button

Shortcut

  1. Install the LibreScore shortcut
  2. In Safari, when viewing a song on MuseScore, tap
  3. Tap the LibreScore shortcut to activate the extension

Note: Before you can run JavaScript from a shortcut you must turn on Allow Running Scripts

  1. Go to Settings > Shortcuts > Advanced
  2. Turn on Allow Running Scripts

Bookmark

  1. Create a new bookmark (usually Ctrl+D)
  2. Type LibreScore for the Name field
  3. Type javascript:(function () {let code = document.createElement('script');code.src = 'https://github.com/LibreScore/dl-librescore/releases/latest/download/dl-librescore.user.js';document.body.appendChild(code);}()) for the URL field
  4. Save the bookmark
  5. When viewing a song on MuseScore, click the bookmark to activate the extension

Command-line tool

  1. Install Node.js LTS
  2. Open a terminal (do not open the Node.js application)
  3. Type npx dl-librescore@latest, then press Enter ↵

Webmscore website

  1. Open Webmscore

Note: You can access the website offline by installing it as a PWA

Building

  1. Install Node.js LTS
  2. npm install to install packages
  3. npm run build to build

  4. Install ./dist/main.user.js with Tampermonkey

  5. node ./dist/cli.js to run command-line tool

Extension points exported contracts — how you extend this code

Module (Interface)
(no doc)
src/webpack-hook.ts
GMXMLHttpRequestOptions (Interface)
(no doc)
src/gm.ts
IndividualDownload (Interface)
(no doc)
src/mscore.ts
BtnOptions (Interface)
(no doc)
src/btn.ts
Params (Interface)
(no doc)
src/cli.ts
GMXMLHttpRequestResponse (Interface)
(no doc)
src/gm.ts

Core symbols most depended-on inside this repo

getFetch
called by 7
src/utils.ts
getFileUrl
called by 5
src/file.ts
hookNative
called by 4
src/anti-detection.ts
add
called by 4
src/btn.ts
isGmAvailable
called by 3
src/gm.ts
fetchData
called by 3
src/utils.ts
fetchBuffer
called by 3
src/utils.ts
loadSoundFont
called by 3
src/mscore.ts

Shape

Function 76
Method 28
Class 17
Interface 6
Enum 2

Languages

TypeScript100%

Modules by API surface

src/scoreinfo.ts33 symbols
src/btn.ts17 symbols
src/utils.ts14 symbols
src/webpack-hook.ts12 symbols
src/worker-helper.ts8 symbols
src/mscore.ts6 symbols
src/file.ts6 symbols
src/cli.ts6 symbols
src/worker.ts4 symbols
src/pdf.ts4 symbols
src/npm-data.ts4 symbols
src/mscz.ts3 symbols

Dependencies from manifests, versioned

@crokita/rollup-plugin-node-builtins2.1.3 · 1×
@librescore/fonts0.4.1 · 1×
@librescore/sf30.8.0 · 1×
@rollup/plugin-commonjs28.0.2 · 1×
@rollup/plugin-json6.1.0 · 1×
@rollup/plugin-node-resolve16.0.0 · 1×
@types/file-saver2.0.7 · 1×
@types/inquirer9.0.7 · 1×
@types/md52.3.5 · 1×
@types/pdfkit0.13.8 · 1×
@types/yargs17.0.33 · 1×
axios1.12.2 · 1×

For agents

$ claude mcp add dl-librescore \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact