Skip to content

Commit 00c6a06

Browse files
kieranhjclaude
andcommitted
Document AR=0 indefinite-playback behaviour in the UI
The User Guide says AR=0 means the note continues indefinitely (with pitch envelope auto-repeating if T bit 7 is clear). The tool caps the release tail at 2 s for bounded audition; surface that in the Hold tooltip and AR field hint so users know to enable Hold to hear it. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 682eef2 commit 00c6a06

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ <h2>Visualisation</h2>
4646
<div class="transport">
4747
<button id="play">Play</button>
4848
<button id="stop">Stop</button>
49-
<label class="hold-toggle" title="Hold the note indefinitely (BBC SOUND duration -1)"><input type="checkbox" id="hold" /> Hold</label>
49+
<label class="hold-toggle" title="Hold the note indefinitely (BBC SOUND duration -1). Also use this to audition AR=0 envelopes — on a real BBC AR=0 means the note continues indefinitely, but this tool otherwise caps the release tail at 2 s."><input type="checkbox" id="hold" /> Hold</label>
5050
<button id="share-link" title="Copy a shareable URL with auto-play that reproduces the current envelope and sound">Copy share link</button>
5151
<button id="run-emulator" title="Open bbc.xania.org with the current ENVELOPE and SOUND auto-running">Run in BBC emulator ↗</button>
5252
</div>

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const AMP_FIELDS: FieldSpec[] = [
3838
{ key: "ad", code: "AD", label: "Decay rate", min: -127, max: 127, hint: "amplitude change per centisecond during decay" },
3939
{ key: "ald", code: "ALD", label: "Sustain start level", min: 0, max: 126, hint: "level at end of decay (start of sustain)" },
4040
{ key: "as", code: "AS", label: "Sustain rate", min: -127, max: 127, hint: "amplitude change per centisecond during sustain (until SOUND duration ends)" },
41-
{ key: "ar", code: "AR", label: "Release rate", min: -127, max: 127, hint: "amplitude change per centisecond during release; usually negative" },
41+
{ key: "ar", code: "AR", label: "Release rate", min: -127, max: 127, hint: "amplitude change per centisecond during release; usually negative. AR=0 plays indefinitely on a real BBC — enable Hold to audition that here (otherwise the release tail is capped at 2 s)." },
4242
];
4343

4444
const ENV_FIELDS: FieldSpec[] = [...PITCH_FIELDS, ...AMP_FIELDS];

0 commit comments

Comments
 (0)