MuseScore
Read and write the score open in MuseScore 4 - notes, lyrics, tempo and titles - through a small bridge plugin, with every change one Undo step.
- By
- Michał Jakub Szymański
- Version
- 0.1.0
- Tags
- Published
- 5 November 2026
- Downloads
- 0
Sign in to download this.
Changelog
-
0.1.0
MuseScore 0.1.0: read and write the score open in MuseScore 4
A new plugin. An agent can now look at the score somebody has open in MuseScore 4 - its parts and staves, key, time signatures, tempos, and what every voice holds measure by measure - and write into it while they watch: melodies and chords, lyrics, tempo and time signature changes, text, the title and credits. Every change is one step of MuseScore's own Undo, and a change that fails part-way is rolled back rather than left half-written.
MuseScore has no way in from outside except through a plugin of its own, so this comes in two halves. The Orknux bridge, plugins/musescore/bridge/ orknux-bridge.qml, is a MuseScore plugin that listens on a port (8084 unless the file says otherwise) and answers JSON commands about the open score; it is installed once in MuseScore's plugins folder and run from the Plugins menu each session. This plugin brings a MuseScore connection kind whose guide says exactly that, and whose Test asks the address whether it is the bridge - another service on the port, MuseScore without the bridge, or a wrong key all fail there.
MuseScore's plugin WebSocket listens on every network interface and has no sign-in, so the bridge takes an optional shared key, set at the top of its file and given to the connection as its API key. The guide and README say so before anyone runs it.
Notes cross as text - C4/4 [C4 E4 G4]/2 r/8 F#5/8. - in concert pitch, with measures and staves counted from 1 in score order. Reading spells notes as the score does and shows ties and tuplets; writing lets MuseScore choose the spelling and takes neither ties nor tuplets (a note across a barline is tied by MuseScore itself). Nothing saves the score: exportScore writes a PDF, MusicXML, MIDI or audio copy, and saving stays the person's Ctrl+S.
It is the first plugin on orknux.http.websocket, the door that sends a list of messages over one socket and waits for one reply to each; its declarations in the contract, the types and the ambient globals come with it. Writing several passages and undoing several steps each go over one socket. Two skills come with it: writing into an open score, and setting lyrics and markings. Its icon is drawn in icons.mjs, since neither simple-icons nor Font Awesome carries MuseScore's mark.
Co-Authored-By: Claude Opus 5.5 [email protected] Claude-Session: https://claude.ai/code/session_0143ghSZrroysGFcqF8yaWk7