How to detect it
The test is the presence of the key. If a file carries an entry named compangon:ai-generated, the score contains AI-generated material. The value is informative: it says when the material was first written and by which version.
By eye. Open the score in the program that wrote it and look at the file's properties, where that program lists them. Or open the file in any text editor, unzipping it first if it is an archive, and search for compangon:ai-generated.
By program. Any zip and text tool will do; no Compangon software is needed. The exact command for each format is given below. A match means the mark is present; the matched text is its value.
Programs and formats
MuseScore Studio
Storage. A .mscz is a zip archive containing one .mscx XML document. The mark is a metaTag element in that document's header:
<metaTag name="compangon:ai-generated">This score contains music generated with Compangon (an AI composition assistant). First written 2026-09-11 by Compangon 0.1.4. How to detect this mark: https://compangon.com/legal/ai-mark</metaTag>
In MuseScore Studio it is listed under File → Project Properties, with the score's other properties.
Reading it. Project Properties, a text editor on the .mscx, or:
unzip -p score.mscz '*.mscx' | grep -o '<metaTag name="compangon:ai-generated">[^<]*'
Exporting. MuseScore carries every project property into its MusicXML export, where the mark appears in the form described under MusicXML below. Verified on MuseScore Studio 4.7.4.
MusicXML files
Storage. MusicXML's place for custom metadata is the miscellaneous block of the header's identification element; the mark is one miscellaneous-field there:
<identification>
<encoding>…</encoding>
<miscellaneous>
<miscellaneous-field name="compangon:ai-generated">This score contains music generated with Compangon (an AI composition assistant). First written 2026-09-11 by Compangon 0.1.4. How to detect this mark: https://compangon.com/legal/ai-mark</miscellaneous-field>
</miscellaneous>
</identification>
Reading it. A text editor, or:
grep -o '<miscellaneous-field name="compangon:ai-generated">[^<]*' score.musicxml
A compressed MusicXML file (.mxl) is a zip: unzip it first and search the .musicxml inside.
Who writes it. Any program that carries its file properties into its MusicXML export; MuseScore does. Compangon's own MusicXML export writes it in this same form whenever the exported score contains AI-generated material, and keeps the line a score already carried.
Standard MIDI files
Storage. A MIDI file has no named metadata, so the mark is one text event (meta event type 01) at the very start of the file's first track, beside the file's title. Its text is the key, a colon and a space, then the value:
compangon:ai-generated: This score contains music generated with Compangon (an AI composition assistant). First written 2026-11-19 by Compangon 0.1.6. How to detect this mark: https://compangon.com/legal/ai-mark
Reading it. Any MIDI library lists text events; or, on the raw file, strings score.mid | grep 'compangon:ai-generated'.
Who writes it. Compangon's own MIDI export, whenever the exported music contains AI-generated material. Many programs drop text events when they import a MIDI file, so a file re-saved by another program may no longer carry it.
WAV audio files
Storage. A WAV file keeps text metadata in a LIST chunk of type INFO. The mark is its comment entry, ICMT. Its text is the key, a colon and a space, then the value:
compangon:ai-generated: This score contains music generated with Compangon (an AI composition assistant). First written 2026-11-27 by Compangon 0.1.8. How to detect this mark: https://compangon.com/legal/ai-mark
The same line is also the Description of the file's broadcast-wave (bext) chunk, which audio workstations keep, and the file's XMP packet (_PMX chunk) records its IPTC digital source type as compositeSynthetic, with the line as its description.
Reading it. Many audio programs and file browsers show the comment with the file's properties; or, on the raw file, strings audio.wav | grep 'compangon:ai-generated'.
Who writes it. Compangon's own audio export, whenever the exported music contains AI-generated material — the file with all the instruments and each instrument's own file alike. The sound is rendered from the score by a synthesizer; the mark is about the music, not the sound. Converting the file to another format, or re-saving it in another program, may drop it.
Workspace documents
Compangon keeps two Markdown documents in the composer's workspace folder: a manuscript per piece and the composer's own profile. Both are written by the assistant from the composer's answers. Their mark is one key in the file's YAML front matter, with the same sentence adapted to text:
---
compangon_ai_generated: "This document contains text generated with Compangon (an AI composition assistant) from the composer's own answers. First written 2026-09-12. How to detect this mark: https://compangon.com/legal/ai-mark"
---
Reading it. Any text editor, or:
grep -m1 '^compangon_ai_generated:' MANUSCRIPT.md
The key uses underscores because YAML keys do; the score's key uses a colon because MuseScore's tags do. Written when the assistant first writes the document and kept as it is on every later save, so the date is that of the first generated text. This line carries no version segment.