The check command provides a stricter verification path for development and CI.
Syntax
partitura check <input>
Arguments
| Argument |
Required |
Description |
<input> |
Yes |
Input file (.pta, .xml, .musicxml, or .mxl) |
Supported Input Formats
| Extension |
Format |
.pta |
Partitura source |
.xml |
Uncompressed MusicXML |
.musicxml |
Uncompressed MusicXML |
.mxl |
Compressed MusicXML |
Examples
# Check .pta source
partitura check score.pta
# Check MusicXML in CI
partitura check score.musicxml
Requirements
- Runs validation-oriented checks suitable for automated use
- Accepts
.pta source or MusicXML input
- Fails with a non-zero exit code when checks fail
Behavior
The check command is stricter than validate and is designed for CI pipelines. It runs additional checks beyond basic validation, such as:
- Canonical formatting compliance
- Semantic completeness checks
- Interchange preservation verification
Exit Codes
| Code |
Meaning |
0 |
All checks passed |
1 |
One or more checks failed |
2 |
Usage error |
See Also