Play Music Score
play_music_scoreRender PDF music-score extractions as playable scores with synchronized bounding-box highlighting, turning semantic note events into an accessible, interactive demonstration.
Instructions
Render and play a PDF music-score extraction from semantic note events with normalized page bboxes. Use this when demonstrating non-text PDF accessibility: each note has page coordinates, pitch, timing, and an accessible label; the UI synchronizes the source bbox overlay with a playable score. If no input is provided, it opens a seeded public-domain Beethoven Moonlight Sonata excerpt from Mutopia. For real OMR output, pass abc_notation plus notes[].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Source PDF page number for the note bboxes. Defaults to 1. | |
| notes | No | Semantic notes with normalized PDF-page bboxes, timing, pitch, and accessibility labels. | |
| title | No | Optional score title. Defaults to the demo excerpt title. | |
| composer | No | Optional composer label. | |
| tempo_bpm | No | Playback tempo in quarter-note beats per minute. Defaults to 54. | |
| abc_notation | No | ABC notation to render as playable sheet music. Defaults to the demo excerpt. | |
| source_label | No | Optional source label shown to the model and app. | |
| mapping_source | No | Short provenance label for the bbox-to-note mapping, e.g. "audiveris", "manual-review", or "seeded-demo". | |
| page_image_url | No | Optional rendered page image URL/data URI for the source PDF page. If omitted, the widget draws a compact generated page from the bboxes. | |
| source_pdf_url | No | Optional source score PDF URL. Defaults to the public-domain Mutopia Moonlight Sonata PDF. |