Cli Anything Musescore

by hkuds34f519533bc1No license51K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 2 weeks ago

CLI for music notation — transpose, export PDF/audio/MIDI, extract parts, manage instruments

Instructions onlyDesign & Creative
AI-generated overview

Wraps MuseScore 4 to transpose, export, extract parts, and analyze music notation scores from the command line.

What it does
This skill provides command-line instructions for driving MuseScore 4's mscore backend on music notation files. It covers transposition by key, interval, or diatonic steps; export to PDF, PNG, MP3, MIDI, MusicXML, and Braille; part listing, extraction, and batch generation; instrument listing, addition, and removal; and score analysis such as probing, statistics, and diffing. It also includes session commands for status, undo, redo, and history, and accepts .mscz, .mxl, .musicxml, .xml, .mid, and .midi inputs.
When to use it
Use it when you need to manipulate or convert music notation scores without a graphical editor, such as transposing a score to a new key, exporting a score to PDF or audio, extracting individual instrument parts, or inspecting an unfamiliar score before working on it.
Requirements
Requires MuseScore 4 (musescore.org) with its mscore backend installed. The skill is instructions only and ships no scripts; the agent runs the cli-anything-musescore command. No credentials or network access are described.

MuseScore CLI Skill

Overview

Wraps MuseScore 4's mscore backend for music notation tasks: transposition, export to multiple formats (PDF, PNG, MP3, MIDI, MusicXML, Braille), part extraction, instrument management, and score analysis.

Commands

Project Management

bash
cli-anything-musescore --json project info -i score.msczcli-anything-musescore --json project open -i score.mscz

Transposition

bash
# Transpose to a target keycli-anything-musescore --json transpose by-key -i score.mscz -o out.mscz --target-key "C major" --direction closest
# Transpose by semitonescli-anything-musescore --json transpose by-interval -i score.mscz -o out.mscz --semitones 3
# Diatonic transpositioncli-anything-musescore --json transpose diatonic -i score.mscz -o out.mscz --steps 2

Part Extraction

bash
cli-anything-musescore --json parts list -i score.msczcli-anything-musescore --json parts extract -i score.mscz -o piano.mscz --part "Piano"cli-anything-musescore --json parts generate -i score.mscz -d ./parts/

Export

bash
cli-anything-musescore --json export pdf -i score.mscz -o score.pdfcli-anything-musescore --json export mp3 -i score.mscz -o score.mp3 --bitrate 192cli-anything-musescore --json export png -i score.mscz -o score.png --dpi 300cli-anything-musescore --json export midi -i score.mscz -o score.midcli-anything-musescore --json export musicxml -i score.mscz -o score.musicxmlcli-anything-musescore --json export braille -i score.mscz -o score.brfcli-anything-musescore --json export batch -i score.mscz -o score.pdf -o score.mid

Instrument Management

bash
cli-anything-musescore --json instruments list -i score.msczcli-anything-musescore --json instruments add -i score.mscz -o out.mscz --id keyboard.piano --name "Piano"cli-anything-musescore --json instruments remove -i score.mscz -o out.mscz --name "Violin"

Score Analysis

bash
cli-anything-musescore --json media probe -i score.msczcli-anything-musescore --json media stats -i score.msczcli-anything-musescore --json media diff --reference a.mscz --compare b.mscz

Session

bash
cli-anything-musescore --json session statuscli-anything-musescore --json session undocli-anything-musescore --json session redocli-anything-musescore --json session history

Supported Input Formats

  • .mscz (MuseScore native)
  • .mxl (compressed MusicXML)
  • .musicxml / .xml (MusicXML)
  • .mid / .midi (MIDI)

Key Names for Transposition

Major: Cb, Gb, Db, Ab, Eb, Bb, F, C, G, D, A, E, B, F#, C# Minor: Ab, Eb, Bb, F, C, G, D, A, E, B, F#, C#, G#, D#, A#

Accepted formats: "C", "C major", "Am", "A minor", "Db major", "F# minor"

Agent Guidance

  • Always use --json flag for machine-readable output
  • Verify exports with export verify after rendering
  • Use media probe to inspect an unknown score before operating on it
  • Transposition requires both -i (input) and -o (output)
  • Part names are case-insensitive for parts extract

Source and attribution

Source:hkuds/cli-anythinginskills/cli-anything-musescoreat commit34f5195

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal