← Écran PapierCONTENT HISTORY

Update to Écran Papier

Snapshot Nov 13, 2026 · 18:12 UTC · version 1.0.5

Collection source: downloaded plugin package.

WHAT CHANGED

First saved snapshot

No earlier snapshot is available to establish a change.

Save Écran Papier and check future changes in Following.

Up to 3 plugins free · no card required.

Compare saved observations

Download comparison JSON
Full technical diff · 0 changed fields
Full snapshot data
{
  "description": "Compose the melody a Écran Papier e-paper frame's alarm clock plays — write it in MML (four Game Boy-style channels), check it, let the owner hear a WAV preview, and set it on the alarm. Use when the owner wants their frame's alarm to play a tune, jingle or melody, or to change, fix or explain an alarm tune.",
  "included_files": [
    {
      "relative_path": "references/composing.md",
      "size_in_bytes": 3069
    },
    {
      "relative_path": "references/examples.md",
      "size_in_bytes": 2615
    },
    {
      "relative_path": "scripts/mml.py",
      "size_in_bytes": 14651
    },
    {
      "relative_path": "scripts/tune.py",
      "size_in_bytes": 8695
    }
  ],
  "name": "wignet-tunes",
  "skill_md_contents": "---\nname: wignet-tunes\ndescription: Compose the melody a Écran Papier e-paper frame's alarm clock plays — write it in MML (four Game Boy-style channels), check it, let the owner hear a WAV preview, and set it on the alarm. Use when the owner wants their frame's alarm to play a tune, jingle or melody, or to change, fix or explain an alarm tune.\n---\n\n# Écran Papier alarm tunes\n\nSome Écran Papier frames are alarm clocks with a small speaker. An alarm can\nring a WAV built into the frame (`sound`) or play a **tune** you write:\ntext in MML, a music notation from old computers and game consoles, played\non four Game Boy-style channels and looped for as long as the alarm rings.\nThis skill covers writing one. Driving the frame in general (links,\nconnectors, the verify loop) is the `wignet` skill.\n\n## 1. Can this frame play a tune?\n\n`get_capabilities` → `tune` must be `true`. It is only true when the frame's\nown firmware says it plays tunes. When it is `false` but `alarm` is `true`,\nthe alarm works with its built-in sound; setting a tune is refused. Tell the\nowner a firmware update is needed. Don't retry.\n\n## 2. The loop\n\n1. `get_alarm_schedule`: pick the alarm by `id` (ask if there are several),\n   note its `volume`, `fade_in_seconds` and `max_duration_seconds`.\n2. Compose (§3, and `references/composing.md` for what sounds good on this\n   speaker). Start from `references/examples.md` when the owner has no\n   particular idea.\n3. **Check it** if you can run code:\n   `python3 scripts/tune.py check tune.mml`. It uses the platform's own\n   parser: pass here, pass there. It prints the beats of every line, which is\n   how you fix the most common error (§4).\n4. **Let the owner listen** before anything changes on the frame:\n   `preview_tune` with `{\"tune\": \"<the text>\"}` checks it and returns a link\n   to a player that runs in the browser, sample for sample what the frame's\n   synthesizer plays (minus the fade-in and the speaker). Give the owner the\n   link; they press Play. Hosts that show MCP Apps display the player right\n   in the conversation. No connector? `python3 scripts/tune.py link tune.mml\n   --base https://app.ecranpapier.com` prints the same link, and `tune.py wav tune.mml -o\n   tune.wav` makes a file you can hand over.\n5. `update_alarm` with `{\"id\": \"<id>\", \"tune\": \"<the text>\"}`. It keeps the\n   alarm's other settings. `\"tune\": null` goes back to the built-in sound.\n   The reply holds the tune as stored (normalized: comments removed,\n   commands lowercased).\n6. Tell the owner what happens next. The frame picks the change up at its\n   next check, within 15 minutes while an alarm is set; an alarm due sooner\n   rings its previous sound. At the alarm the volume rises from silence over\n   `fade_in_seconds`, then the tune loops for `max_duration_seconds`. Any\n   button stops it.\n\nNo code sandbox? Skip step 3: `preview_tune` and `update_alarm` both refuse\na tune they cannot play and say where the problem is (§5).\n\n## 3. The notation\n\n```\n; A comment. One line per channel; a channel can continue on later lines.\nA t120 o5 l8 v12 @2 c e g >c< | g e c r\nC o3 l2 c g\n```\n\n| Channel | Sound | `@` choices |\n|---|---|---|\n| `A`, `B` | square wave: melody, harmony | `@0` thin … `@3` full (duty 12.5/25/**50**/75 %) |\n| `C` | soft wave: bass, pads | `@0` **triangle**, `@1` sawtooth |\n| `D` | noise: drums | `@0` **white**, `@1` metallic |\n\n| Write | Means |\n|---|---|\n| `c d e f g a b` | a note; `+` or `#` sharp, `-` flat: `f+`, `b-` |\n| `r` | a rest |\n| `4`, `8.`… after a note or rest | length: `1 2 4 8 16 32 64` (`3 6 12 24 48` for triplets); a dot adds half |\n| `c4&c8` | a tie: one note of both lengths, same pitch only |\n| `o1`–`o7`, `>` `<` | octave (`o4 c` = middle C), one up, one down |\n| `l8` | default length for notes written without one (**`l4`**) |\n| `t40`–`t240` | tempo, quarter notes per minute (**120**) |\n| `v0`–`v15` | volume (**12**) |\n| `s0`–`s7` | decay: each note fades, `s1` fastest; **`s0`** holds |\n| `q1`–`q8` | how much of each note sounds, in eighths (**`q7`**; `q8` = legato) |\n| `[ … ]3` | repeat 2–16 times (**2**), nests 4 deep |\n| `\\|` | bar line, ignored: use it to count |\n\nCommands are case-insensitive; the channel letter must be uppercase.\n\n## 4. The rules that trip people\n\n1. **Every channel lasts exactly as long as the others**, counting rests.\n   The tune loops, so a short channel would drift. Write in bars (`|`),\n   count beats per bar, and pad the end with rests. `tune.py check` shows\n   each line's beats.\n2. **`t` goes before the channel's first note**, and every channel that sets\n   it uses the same value. Setting it on channel A alone is enough.\n3. **State carries on.** Octave, length, volume and `@` stay set until\n   changed, across lines too. `>` and `<` are relative, so restate `o…` at\n   the start of every line; that keeps a mistake from spreading.\n4. A loop `[ … ]` opens and closes on one line. A tie joins the same pitch.\n5. At most 2048 bytes once normalized and 180 s per loop. Use loops and a\n   default length `l…` to stay short.\n6. Plain ASCII: no quotes, backslashes or braces.\n\n## 5. When something is refused\n\nThe error names the line of your text and quotes the spot, e.g.\n`line 3 near \"c4 h4\": unknown command 'h'`, or\n`channel B lasts 15 beats but channel A lasts 16`. Fix that spot only and\nsend it again. If an alarm rang its old sound, the frame had not synced\nyet (§2.6). A frame whose firmware rejects a tune plays its WAV, and failing\nthat, a beep.\n\n## 6. Melodies from elsewhere\n\nWrite original tunes, or arrange melodies in the public domain (folk songs,\nclassical works whose composers died long ago). For a song still under\ncopyright, don't transcribe it: write an original tune in its style,\ntempo and mood, and say so.\n"
}

SHA-256 of public snapshot: 7a0661bead1b98d384fe36e203932395494d96b19c924b26b763f649cb0e0cd8