Copyright (c) 2026 Nenad Micic
SPDX-License-Identifier: Apache-2.0

CHIMEPOND / JOTTUNE: START HERE, GIVEN ONLY THIS PLAYER URL

Download the offline Node ZIP: agent-offline.zip (relative to this page). A person can attach this one file if the agent cannot reach the site.

Goal: compose an original instrumental song, render locally with the complete
JotTune engine, measure and revise it, then deliver the verified canonical .tl,
editable score and playback link. Include WAV when you can transfer audio. No source checkout, MCP server, npm install,
Python, renderer bridge or custom TL parser is required. No audio is sent to
the service by these local tools. Synthesized instruments do not sing lyrics.
Resolve the links below relative to the player URL you were given, including its trailing slash.

CREATIVE FREEDOM
Choose your musical idea and style from the user's brief before consulting
musical examples. This guide prescribes no genre, mood, meter, tempo, scale,
instrumentation or song form. Aim for a finished, distinctive work in the style
you choose; use the instrument's capabilities when they serve that intention.
The starter teaches syntax, not what your music should resemble. Its melody,
sounds, length and arrangement are not a benchmark or a template to copy.
References are optional; their selection can influence the result. Never claim
that valid rendering, feature counts or loudness measurements prove a masterpiece.

1. DISCOVER
Read agent-quick.txt for a compact capability check and valid score, then
authoring.txt to write a song and render a first take. Use other references
when needed; reading all source code or documentation before composing is
unnecessary. agent-manifest.json files[].bytes gives exact served file sizes.
  llms.txt                  full index of player guides and reference files
  agent-quick.txt           minimal score, pipeline and capability split
  authoring.txt             score fields, durable metadata, FX and sound laws
  reference/recipes.txt     look up chosen recipes and their native rows
  analysis.txt              inspect a take, sections, levels and dry voices
  publishing.txt            prepare or explicitly publish a finished song
  browser-guide.txt         browser API; terminal users can skip it
  reference/params.txt      look up native fields, units and bounds
  reference/gen-params.txt  read when using native generators
  tl-format.txt             portable metadata bounds and identity
  instrument.txt           broad instrument reference, including local CLI tools
native-reference.txt is the native-instrument subset of instrument.txt; consult
it for synthesis features beyond the authoring guide. There is no need to read
agent.mjs source: run node agent.mjs --help for supported commands and flags.
starter.score.json is an editable eight-bar syntax example; starter.tl is its
complete hashless draft. For the exact text in a connected browser, use
await (await fetch('authoring.txt')).text(). Keep known title, made_by, model
(id and source), tempo, genre and utc_day in score.metadata. Omit unknowns.
The field table in authoring.txt links the portable document rules in tl-format.txt.

LICENSE BEFORE COMPOSING OR SHARING
Preserve score.metadata.license through revisions and canonical export.
Use license (not licence). For an original ChimePond/tunes contribution with the
author's explicit CC0 approval, set it to "CC0-1.0". Never silently relicense.
Header metadata supplies no separate publication or CC0/dataset/rights/age/history
consent. Private drafts may omit license; the teaching starter retains Apache-2.0.

2. CHOOSE ONE SUPPORTED INTERFACE
A web reader can read docs but cannot execute this page's JavaScript/Wasm. A
connected browser can render locally. A cloud terminal may restrict network or
execution: check that session's capabilities, rather than assuming all phones
or agents share one restriction. If the site is unreachable, use a downloadable
offline client bundle when available, or hand score JSON to the person's browser.

If terminal HTTP fails but you can run JavaScript in the connected player tab,
use window.IntFM there. Fetch the guides as text relative to document.baseURI
when a page reader paraphrases syntax. Import score JSON directly from a local
file or paste it into Song source. The player renders locally.

On a phone, open the .score.json file in Choose a song. It prepares automatically.
For pasted JSON, open Song source and choose Prepare pasted input. Once ready,
choose Verify saved render in Song source and wait for Verified. Use Save editable
score (.score.json) to keep the source for revisions and Save song (.tl) to
download the verified timeline. Use Copy song link (Share song link on supported
touch devices) for the playable URL. For a long URL, use Save song link (.txt)
and send the downloaded file as an attachment. Tap Play only if you want to listen.

For a measured report, open Record details → Audio measurements → Analyze audio
after verification. Wait for analysis to finish, then choose Copy report for your
agent. If preparation fails, the same report button returns the input error.

A. Browser automation: await IntFM.compose(score) returns draftText and the
selected rendererRelease. IntFM.recipes() lists the sounds. A score declaration
"recipe wind flute c_level=6" lowers the flute carrier by 6 dB; for all carriers,
IntFM.recipeGain("flute","wind",-6) returns complete native rows. Positive
c_level attenuates; positive gain amplifies. See authoring.txt for bounds. Then:
  const draft = await IntFM.compose(score);
  const take = await IntFM.listen(draft.draftText, {release:draft.rendererRelease});
  if (take.verdict !== 'valid') throw Error(take.stderr || take.verdict);
  const saved = await IntFM.verify(IntFM.toText(take),
                                 {release:draft.rendererRelease});
  if (!saved.verified) throw Error(saved.stderr || saved.verification);
  const measured = await IntFM.analyze(saved);
  console.log(measured.pcm.sample_peak_dbfs, measured.pcm.loudness.integrated_lufs);
  const wav = IntFM.toWav(saved);  // Blob; original integer PCM
  const svg = IntFM.toSvg(saved); // native note gates, not an audio spectrum
  console.log(IntFM.summary(saved)); // compact JSON-safe result; no PCM/events
  const songURL = await IntFM.toLink(saved); // release pinned by default
Use the existing player buttons to save TL, WAV, SVG, analysis JSON and PNG
spectrogram. browser-guide.txt documents the complete API. Loading/rendering
via API is silent; Play needs a human audio gesture. Do not claim you listened
unless you actually auditioned it. No browser automation? Use B.

B. Terminal agents: download agent.mjs from this page's prefix; run with
Node 22.15 or newer. It uses Node built-ins only and fetches pinned static
assets to a local cache. Set SITE to the clean player base URL including its prefix and TRAILING SLASH.
Use the base of the page's agent.mjs link (document.baseURI in browser), not
a song s/.../r/... URL, query or portable fragment. For example, append '/'
to a slashless player address before these shell commands:
  curl --fail --location "${SITE}agent.mjs" --output agent.mjs
  node agent.mjs "$SITE" discover
  curl --fail --location "${SITE}starter.score.json" --output syntax-example.score.json
Write your own song.score.json for your chosen musical idea. Consult the syntax
example for field shapes, not for its melody, instrumentation or arrangement.
Then:
  node agent.mjs "$SITE" compose song.score.json --mode listen --out audition
  node agent.mjs "$SITE" verify audition.tl --analysis --out finished --formats tl,json,wav,svg,link
--analysis measures PCM from that invocation without another render. For quick
revision checks, add it to compose --mode listen instead. Standalone analyze is
useful for a saved TL from an earlier session, but renders/verifies it again;
prefer --analysis when already composing, rendering or verifying the same take.
Use distinct output stems for revisions; existing files are refused unless
--force is explicit, and source files cannot be overwritten. --release ID
pins a kept renderer. --cache DIR selects cache (default ~/.cache/jottune-agent). Use --cache ./cache
on each command to keep downloads inside your working folder; --offline uses only a complete
previous setup and labels revocation status unknown. --timeout-ms bounds work.
Run --help for options. Discovery shows recipe IDs once; --detail full adds
descriptions and carrier metadata, or save with discover --out catalog --formats json.
--detail full expands other console results; JSON outputs retain
full diagnostics. setup downloads required runtime files without making music.

FILES AND JSON RESULTS
--out STEM is a filename prefix, not a directory or a JSON filename. The
requested --formats select these files (default tl,json):
  tl    STEM.tl                 complete canonical song
  json  STEM.verification.json  full render/verification/analysis report
  wav   STEM.wav                native integer PCM audio
  svg   STEM.svg                native note gates and spatial command targets
  link  STEM.link.txt           portable player URL, not a publication
Discover with --out STEM writes STEM.discovery.json. prepare-publish also writes
STEM.publish.json and writes STEM.request.json only when ready to submit.
The client does not save your editable score: retain that input yourself.

Default console JSON is compact. --detail full prints the full saved-report
shape, including diagnostics; the flag adds no render. With JSON export, both
contain the same completed outputFiles list. Important field differences:
  compact dimensions       full sampleRate/channels plus native info fields
  dimensions.frames        Number(info.frames) in the full report
  dimensions.voices        Number(info.voices) in the full report
  dimensions.durationSeconds  Number(info.frames) / sampleRate
  authoring.warnings        grouped summaries of full authoring.advisories
Full analysis.windows/sections and dryAnalysis.voices/streams retain the rows
that compact output counts or summarizes. Other native info fields are strings;
convert only known safe integers. A .verification.json file is a local report,
not the publication request body; use publishing.txt for that separate contract.

OFFLINE SETUP AND EXECUTION BOUNDARIES
Run setup once while online in your chosen working folder, containing agent.mjs
and your song files. Use the same SITE, cache and release for subsequent work:
  WORK="$PWD"
  node agent.mjs "$SITE" setup --cache "$WORK/cache"
  node agent.mjs "$SITE" verify finished.tl --offline --cache "$WORK/cache" --out checked
Setup selects the default kept release unless --release ID is supplied. Copying
only harness.wasm is insufficient: use setup, then retain its complete cache.
Do not construct cache metadata manually. A missing/incomplete cache refuses;
return online and rerun setup. Offline use cannot establish current revocation.

For a trusted client, this restricted invocation was checked with Node 25.8.2
after ordinary setup; keep all input/output files within WORK:
  node --permission --allow-fs-read="$WORK" --allow-fs-write="$WORK" --allow-worker \
    agent.mjs "$SITE" verify finished.tl --offline --cache "$WORK/cache" --out checked-restricted
This is not a security sandbox. Node warns that --allow-worker may invalidate
its permission model; worker threads do not inherit that model. --offline
prevents application HTTP requests, not arbitrary code from using a network.
Do not add unsupported permission flags: --allow-net was introduced in Node 25,
not the client minimum of 22.15. See the tested-version permission constraints:
https://nodejs.org/download/release/v25.8.2/docs/api/permissions.html
An external agent/OS policy may still refuse execution. Report that refusal;
do not rename the command, switch hosts or build another harness to evade it.

Online commands fetch agent-manifest.json and any missing selected runtime
assets. discover --examples additionally GETs songs.json; it does not fetch the
selected songs. prepare-publish and publish also GET api/sharing. Only explicit
publish --submit POSTs the song to api/publish, once. Offline commands use the
verified local cache; publication preparation/submission require a connection.
There is no hidden model/API request or upload during local composition/rendering.
agent-manifest.json lists static SHA-256 checksums; engines.json identifies kept
renderer files/checksums. browser-guide.txt explains the optional bootstrap
checksum check and WASI artifact contract. Same-origin checksums prove integrity
against that manifest, not independent authenticity of the website/client.

If Python urllib receives HTTP403 with "error code: 1010", Cloudflare's browser
signature check rejected the default client header before this application.
Curl and the official Node client work. For your own Python documentation client,
identify it honestly, for example:
  import urllib.request
  request = urllib.request.Request(url, headers={"User-Agent":"MyMusicAgent/1.0"})
  with urllib.request.urlopen(request, timeout=30) as response:
      text = response.read().decode("utf-8")
Use your application's name/version; do not impersonate a browser. Other403
responses can have other causes. See Cloudflare's error1010 explanation:
https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-1xxx-errors/error-1010/

3. INSPECT AND REVISE
Start with whole-song PCM measurements. Read sample_peak_dbfs, integrated LUFS,
stereo balance and ending silence in analysis.txt. Add CLI --sections
'[{"name":"hook","startSeconds":4,"endSeconds":12}]' to measure a passage.

Request dry voices only to answer a source-level question, such as which stream
is silent before effects. The extra native render produces frames * ALL native
voices * 4 bytes even when measuring only one voice. Check that estimate against
a chosen byte cap and allow time for the extra pass. For example, opt in with
--dry-voices '[0]' --dry-max-bytes 134217728 --dry-timeout-ms 10000 if 128 MiB
and 10 seconds suit the job. The browser example in analysis.txt applies these
budgets. If dry analysis is unavailable, keep the verified TL and mix report.
The CLI caps dry output at 2 GiB and the entire worker at 120000 ms, including
render, verification and analysis. The browser analysis maximum is 300000 ms.
To audition a score part through its effects, use a controlled rerender:
  node agent.mjs "$SITE" compose song.score.json --solo-streams '["lead"]' --mode listen --analysis --out lead-only
Or use --mute-streams '["bass"]'; the two options are mutually exclusive.
Browser: await IntFM.compose(score,{soloStreams:['lead']}) or {muteStreams:['bass']}.
The complete original score is natively inspected before filtering. All patches,
duration, effects, positions and controls stay; only other note/on/off gates
are removed. Generators and voices shared by retained/muted gates are refused.
This is a new performance through the chain, not additive stems of the original
mix: shared effects, dynamics and preceding audio history can change the result.
Inspect authoring.selection in CLI results (selection in browser compose output).
Check a dense passage, arrangement contrasts, note overlap, ending decay and
stereo/mono behavior. Level targets and gate warnings are advice, not musical
quality/originality proofs. Use identical phrases plus effect history for A/B.
Revise the retained score; never erase an unexplained saved hash mismatch.

If you cannot hear the output, save and verify the first valid take. Before
a long revision sweep, measure a representative passage and its ending. Use
IntFM.analyzeParts(score,{sections}) or node agent.mjs "$SITE" parts song.score.json
for solo levels through effects. Check the recipe's velocity response, note
whether you actually heard playback, and remeasure only streams you changed.
browser-guide.txt shows how to poll or cancel a long-running part report.

4. DELIVER, THEN PUBLISH ONLY IF ASKED
Keep the complete canonical .tl, renderer release and editable score. A browser
agent can return the verified player link and score even when audio transfer is
unavailable. If canonical text exceeds one reply, browser-guide.txt shows how
to transfer it in parts and check its document SHA-256. Hashless valid drafts
are unverified: canonical replay must report
verified=true, match=yes and block_indep=yes. Listen is one pass; verify is two.
The CLI automatically replays a draft's canonical output in verification mode.
execution.canonicalReplay means this EXTRA invocation for a newly canonicalized
draft, not whether verification succeeded: draft verify has 2 invocations/4 native
passes and canonicalReplay=true; saved-TL verify has 1 invocation/2 passes and
canonicalReplay=false. Both succeed with verified=true, match=yes, block_indep=yes.
Listen has 1 invocation/1 pass and does not verify a saved record.
Its computed hash and canonical output are useful artifacts, but verified=false
is intentional until full saved-record verification succeeds.
PNG spectrogram and native animated spatial paths are browser views/exports;
CLI SVG shows native note gates and spatial command targets. MIDI/SFZ and
score v2/v3 abstractions use the separate local tools described in local-tools.txt
and interchange.txt; they are not silently advertised as browser operations.
Use metadata.title for the saved title: name/about/mark are comments dropped by
canonicalization. Keep metadata.license with the canonical full TL as instructed
above. See authoring.txt and tl-format.txt for exact fields and bounds.

Portable links/QR publish nothing. For deliberate submission, read publishing.txt
and live api/sharing; openapi.json is the service contract. The official client
can submit once, or its prepared request.json can be sent directly with curl;
publishing.txt gives the exact endpoint and private-response commands. Never invent consent
or retry a failed intake to recover a secret. Source consent remains separate
from technical verification. When api/sharing reports approval_required=true,
explicit operator song approval is also required; ordinary listing and managed
exports follow api/sharing.grace_days: 0 adds no delay after verification and
required approval; 7 keeps the seven-day intake grace. Older descriptors that
omit grace_days imply 7. Neither client verification nor a successful intake
response constitutes song approval. Independent technical verification runs on
the separate Linux verifier outside Cloudflare.

Use songs.json or Browse all for examples; Favorites is a curated listening selection.
Optional references, after choosing your own musical direction:
  node agent.mjs "$SITE" discover --examples 3
This returns a fresh random selection of distinct songs from the source library,
not multiple spatial variants of one composition. It does not download, render
or upload the songs. Open any returned TL URL that you actually want to inspect.
The selection includes its seed and exact song IDs. To repeat it for a comparison:
  node agent.mjs "$SITE" discover --examples 3 --example-seed comparison-01
The same seed and catalog select the same songs; normal discovery selects none.
The current songs.json catalog has no acoustic loudness measurements. To compare
levels, download one chosen TL URL locally as reference.tl, then run:
  node agent.mjs "$SITE" analyze reference.tl --out reference-analysis
This measures that song with the official client; it establishes no universal
loudness target or musical-quality ranking.
COUNT is 1–10, up to the number of playable source songs; this option needs a
connection. Selection ignores genre/Favorites rank and prefers each song's usable
Standard version. Keep reference IDs with a comparison when examples are used.
A library is a collection of particular works, not a neutral distribution of
styles. Random references can broaden exposure but cannot remove that bias.
A measured feature/level is not a quality score. Missing model/tempo/genre is
unknown; don't inherit another creator's attribution or invent your own model.
Browser profile: 1,000,000 TL bytes / 300 seconds. Publication requires more
than 20 seconds and no more than 300 seconds (exactly 20 is not eligible).
Invalid inputs, wrong hashes, resource limits and withdrawn releases are explicit
refusals. Offline caches cannot prove current revocation. Keep local source files.

ABOUT CHIMEPOND
ChimePond is an independent software and digital music hobby project by Nenad Micic.
ChimePond support, privacy, rights and security reports: support@chimepond.com
Contact Nenad about the project: chimepond@nmic.app · https://www.nmic.app/
Project organizations: https://github.com/chimepond · https://huggingface.co/chimepond
JotTune project site — https://jottune.app/

USING THE OFFLINE NODE ZIP
Extract the ZIP into an empty directory. Write your own original song.score.json there.
Use starter.score.json only to check syntax. With Node 22.15+ and SITE set to the player URL, run:
  node agent.mjs "$SITE" compose song.score.json --mode listen --cache ./cache --out take
  node agent.mjs "$SITE" verify take.tl --cache ./cache --out final --formats tl,json,wav,link
The client detects its adjacent bundle and verifies the runtime locally. Keep your editable score.
