@muse-player/cli
v1.0.0
Published
CLI tool for pre-rendering MXL/MusicXML scores via @muse-player/server
Downloads
159
Maintainers
Readme
@muse-player/cli
CLI tool for pre-rendering MXL/MusicXML scores to static assets via @muse-player/server.
Installation
pnpm add -g @muse-player/cliOr run directly with npx:
npx muse-render score.mxlUsage
muse-render <input.mxl> [options]Options
| Flag | Description | Default |
|------|-------------|---------|
| -o, --output <dir> | Output directory | <input-name>.rendered/ |
| --pageWidth <number> | Page width in SVG units | 1300 |
| --scale <number> | Scale factor | 40 |
| -h, --help | Show help | |
Example
muse-render symphony.mxl -o public/symphony/This produces:
public/symphony/
manifest.json — score metadata + file references
data.json — MIDI, timemap, element attributes
page-1.svg — first page SVG
page-2.svg — second page SVG
...The output directory can be served statically and loaded by @muse-player/core's useScore().loadResult() hook via the manifest.json URL.
Build
pnpm buildBuilt with Rslib (ESM, bundled, Node target).
Related Packages
| Package | Description |
|---------|-------------|
| @muse-player/core | React hooks for score loading, MIDI playback, note highlighting, and auto-scrolling |
| @muse-player/component | UI components (PlaybackControls) styled with StyleX |
| @muse-player/server | Node.js server-side MXL rendering via Verovio WASM |
| @muse-player/instruments | Piano sample manifests and audio files |
