2.51 BUILD UPDATE
Run CheckLightStartup --brandy /path/to/sbrandy for the strict positive-base
regression that catches the reported RISC OS startup failure. CheckLights
continues to verify every emitted pixel and all 13 native/web patterns.

2.50 BUILD UPDATE
Run AdditionalCarols before Score. See AdditionalSources and MusicReview250
for the three added instrumental scores. CheckCurrentMusic --render checks
the changed modules with libopenmpt; CheckLights checks additive lighting.
46 songs,184 per-song MODs,46 DJ decks and92 Maestro files.
The following dated build notes are retained as history.

2.48 - SINGLE-CLICK LAMP
LampParty cycles warm light, off, disco, off with Select clicks. Disco begins
immediately, and switching it off restores the previous music genre.
No hold timer or pointer polling remains. CheckParty runs the actual BASIC
click-cycle tests in text and tokenised form. Its optional ARM checks cover
the unchanged blend routine. Use --skip-arm if Unicorn/Capstone are absent.

2.47 - LIGHTING UPDATE
LampParty supplies the lamp switch, timed rainbow and party sequence.
CheckParty runs BASIC transition tests and optional Unicorn ARM checks.

2.43 - LYRIC SHEETS AND JINGLE BELLS
!Xmas26/Words/C01 to C43 are ordinary RISC OS text files. The printed
lines, verses, credits and source URLs are built by Docs/build/LyricFiles from
Docs/build/SheetText, matched to the edition's sung words in Docs/build/LyricInput.
Twelve Days of Christmas supplies the full cumulative text for reading.
Jingle Bells uses James Lord Pierpont's familiar later tune. See Docs/build/JingleTune
and Docs/build/JingleMake for transcription, tune references, lyric alignment
and new accompaniment. The old collection MIDI provided the sung words.
The native, tracker, DJ, Maestro, MIDI and MusicXML editions follow the
same pitches. The medley uses the chorus in C. The singular drawer greeting
is clip 51 in FXBank; the newly rendered voice is recorded in EffectsData.

2.42 - ROOM ART AND SPEECH
Docs/build/DrawerArt draws the sliding left TV drawer, angled VHS case, HOME
lettering and caption. Docs/build/RoomDetail handles the three clicks and the
A310 floppy lamp. Docs/build/BuildEffects generates the drawer voice from text
using eSpeak NG 1.52.0 (English, speed 157, pitch 37). The finite stereo
clip is number 51 in !Xmas26/FXBank. Source and sample data are listed in
Docs/build/EffectsData. The existing project and third-party licences apply.

2.41 - DANCE/TRANCE DJ PLAYBACK
Docs/build/BuildDJ creates the shared 8-channel QTM deck and beat-grid files from
the 43 shipped Dance/Trance modules. Docs/build/DJMix stages the next playlist
choice, original melodic voices and eight beats of gain/tempo automation.
Tracker/Mix inside !Xmas26 contains DJDeck and J01-J43. This uses the same
16 OakAcorn synthesised instruments, carol sources and existing player.
See Docs/Licences/Songs for each input, its sample credits and its DJ asset hash.

XMAS26 2.40 BETA - ELECTRONIC ARRANGEMENTS
Docs/build/TranceBank synthesises all Dance/Trance PCM. Docs/build/TranceSrc lists
sample hashes and the MIT grant; Docs/build/TranceParts sequences the groove.
Docs/Licences/Songs identifies the arrangements and underlying works for all
43 songs. There are 172 individual tracker modules and one medley.

Xmas26 2.48 Beta - BUILD FILES AND SOURCE GUIDE

Current 2.45 update: CheckResize covers both-direction size-icon drags,
proportional scaling and restoring windowed furniture after full screen.
Run: python3 Docs/build/CheckResize --brandy /path/to/sbrandy

Earlier 2.33 updates: CheckNight covers new Santa sounds and tracker repeat.
CheckBeta covers separate menus and repeat with retained shuffle history.
Community is a proposed release/review process, not an adopted policy.

Earlier 2.32 files: NightSanta, NightArt, LicenseUI and CheckBeta are
original project code. BuildEffects now uses the standalone speech CLI.
See Licences/Release (or ../Licences/Release from build) for release status.


This directory contains the former loose parent-folder build files and
source materials. It is not needed to run the ready-built RISC OS app.
Names are intentionally extensionless, following the existing package.
Files beginning with Python code run with Python; Main, Music and the other
program fragments below contain readable BBC BASIC; most data is JSON.
SampleBank is binary. Unused original LilyPond files are no longer included.

LAYOUT AND OUTPUTS
Build inputs, metadata and editable fragments live in this directory.
The builders write runtime files to ../../!Xmas26 and score exports to
../../Maestros and ../../MaestrosPluck. Licence records are in ../Licences.
Sources and Licences opens the tokenised !RunImage as text. Edit the
fragments here and rebuild. Use the outer Docs/build directory. The copy
inside the app is for reading when the app has been moved on its own.
MusicSources/AppSources are copied into the app as MusicSrc/AppSrc;
../Licences/Overview is copied as !Xmas26/Licences.

BUILD ON A HOST COMPUTER
Use the complete extracted package, with its sibling !Xmas26 directory.
Python 3, Pillow, NumPy, SciPy and the standalone espeak-ng command are
required for a full build. Speech uses eSpeak NG 1.52.0; set XMAS26_ESPEAK
to its executable path if it is not on PATH. It is an ordinary text-to-WAV
conversion, with no ctypes/library binding. Tool versions can change output.
No Python tools or compiler are required on RISC OS to run the ready app.
The launcher reserves a 28 MiB task slot (previously 24 MiB) to accommodate
the new sprite poses with working space for BASIC and the frame buffers.

From the parent distribution directory:
  python3 Docs/build/Build

The script also works when invoked with its full path from elsewhere.
It rebuilds artwork, carol banks, tracker arrangements, lyrics, notation,
Maestro exports, effects, combined BASIC and the tokenised !RunImage.
It writes Xmas26-v2.47-beta-riscos5.zip,a91 beside the distribution directory,
preserving the native Acorn file types in the archive.

QTMModule is a retained supplied asset, not regenerated by this command.
Medley regenerates NeonMOD/NeonDTT with the independently entered Bells
input. Keep the app skeleton, launcher, help, QTM and licence notices. The
ready SampleBank is included, so a full normal build needs no sample
download. FetchSamples and BuildSamples are optional if changing that bank.
FetchSamples downloads pinned VSCO originals to /tmp/xmas26-vsco-original
unless given a destination; pass that directory to BuildSamples to use it.

CHECKS (FROM THE DISTRIBUTION DIRECTORY)
  python3 Docs/build/CheckElf --brandy /path/to/sbrandy
  python3 Docs/build/CheckNight --brandy /path/to/sbrandy
  python3 Docs/build/CheckBeta --brandy /path/to/sbrandy
  python3 Docs/build/CheckCupbd --brandy /path/to/sbrandy
  python3 Docs/build/CheckRights
  python3 Docs/build/CheckClub
  python3 Docs/build/CheckRhythm
  python3 Docs/build/CheckModules
  python3 Docs/build/CheckSpeech --brandy /path/to/sbrandy

CheckRights uses the standard library. The rhythm/club checks need NumPy; CheckModules also needs the host libopenmpt.so.0
shared library. CheckClub's optional baseline argument is specifically an
older v2.25 flat source tree, to check the v2.26 arrangement changes; omit
it for normal current-package validation. CheckModules can use --song 0
for just Silent Night in all three tracker styles. Its detailed results
are written to /tmp/xmas26-module-check.json. These are host checks, not
a replacement for testing the app with RISC OS or RPCEmu. CheckSpeech needs
Matrix Brandy and executes the real BASIC speech/click routines with mocked
OS audio/window calls, checking all 1,440 times and the countdown range.

NEW CUPBOARD FILES
Cupboard
  BBC BASIC interaction state, six-click cycle, door/elf sequence, ten
  penguin paths and dog-reaction timing. Joined into the normal Source.
CupboardArt
  Original procedural native-sprite artwork for the cupboard surprise.
CheckCupbd
  Executes actual source and tokenised BASIC with mocked Wimp/audio,
  checking both layouts, 18-click cycles, motion continuity, dog/fetch
  interactions, scaled hit targets, clean speech and the penguin boings.
  Optional --trace /path/file writes sprite calls for visual inspection.

FILE INVENTORY

BUILD AND VALIDATION TOOLS
Build
  Main Python builder, BASIC tokeniser and Acorn-aware ZIP packager.
SongList
  Generates ../Licences/Songs from current score, lyric and sample records;
  verifies all 129 tracker module hashes and locates all 86 Maestro exports.
  Run python3 Docs/build/SongList from the distribution directory to refresh the
  plain-text register without rebuilding audio or graphics.
Art
  Main room artwork and native sprite-file writer.
Shchedryk
  Independently entered Leontovych melody, new backing and lyric alignment.
Medley
  Original medley sample synthesis, sequencing, MOD and DskT writers.
CheckRights
  Checks approved input fingerprints and removed source-file exclusions.
Score
  Combines score inputs into the native Carols sound bank.
BuildTrackers
  Builds all 129 per-carol MODs and exact playback row maps.
ClubArrange
  Chillout/pop orchestration, phrase sections and metre-aware rhythms.
ClubSamples
  Original electronic sample synthesis for chillout/pop tracks.
BuildSamples
  Rebuilds the retained mixed original/VSCO instrument bank.
FetchSamples
  Optional downloader for the pinned nine-recording VSCO source subset.
BuildMedia
  Builds lyrics, note-view data and both Maestro export folders.
BuildKara
  Extracts score-display events from the rebuilt Neon Noel medley.
BuildEffects
  Builds train/clock effects, speech PCM and the ARM sound callback.
MidiImport
  Reusable MIDI note, lyric, tempo and signature reader.
SilentNight
  Original hand-sequenced Silent Night arrangement and accompaniment.
CheckSpeech
  Exhaustive spoken-time/countdown, PCM bounds and clock-button checks.
CheckClub
  Checks the 86 electronic MOD melodies, row clocks and sample loops.
CheckModules
  Independent full MOD decoding/headroom check using libopenmpt.
CheckRhythm
  Checks beat positions, metres, pickup bars and fixed song palettes.

EDITABLE BBC BASIC PROGRAM FRAGMENTS
Main
  Wimp lifecycle, windows, Info, menus, scheduler and buffered drawing.
Music
  Traditional sound-voice playback, mute/pause and resource restoration.
Timing
  Scene state, elapsed-time animation and linked train geometry.
Lighting
  Random tree-light colours, sequences and flashes.
Surprises
  Aquarium cracker/hats, TV surprises and room event states.
Eggs
  Secret click/key sequences and event triggers.
Santa
  Sleigh fly-pasts, mishaps and the Christmas Eve room visit.
Dog
  Dog sleeping, walking, bone-fetch and settling states.
Interactions
  Clickable pets, train steam/peeps, tree and countdown actions.
Effects
  Finite SharedSound playback, speech assembly and safe cleanup.
FestiveExtras
  Father Christmas fish, presents, clock announcements and hourly chimes.
Game
  The original Santa/cookie maze game and keyboard controls.
Playlist
  Included carols, ordered playlist, looping and seasonal availability.
CarolUI
  Native resizable/scrollable carol list, selection and transport controls.
View
  Window sizing, desktop-mode changes, fullscreen and widescreen layout.
Tracker
  QTM ownership, music modes, row maps, transport and VU control.
Media
  Lyric/banner state, notation, countdown, clock and display-option toggles.
Karaoke
  Fullscreen lyric/score presentation, scrolling and chooser controls.
HiRes
  Native Font Manager karaoke rendering at display resolution.

ADDITIONAL ART GENERATORS
ExtraArt
  Santa, sleigh, festive visitors and original maze-game sprites.
MediaArt
  Acorn computer, notation furniture, wooden signs and cat visit poses.
WinterArt
  Snowball children and wall-clock artwork.
DogArt
  Articulated dog walking, bone and resting poses.
InteractionArt
  Pet click reactions and drifting locomotive steam sprites.
FestiveArt
  Father Christmas fish swimming poses and aquarium presents.

INPUT DATA AND GENERATED BUILD RECORDS
ScoreInput
  Imported carol note streams and source provenance (JSON).
MusicData
  Generated three-voice records, durations and per-song offsets (JSON).
TrackerInput
  Source MIDI parts, division, tempo and metre maps (JSON).
TrackerData
  Generated Neon Noel medley arrangement and sample metadata (JSON).
TrackerModes
  Generated per-carol tracker palette, note, rhythm and timing metadata.
LyricInput
  Source lyric words/syllables, onsets and provenance (JSON).
LyricTiming
  Generated display cue intervals and wrapped lyric lines (JSON).
MusicKeys
  Source key-signature maps used for correctly spelled Maestro exports.
BellsPhrases
  Carol of the Bells phrase/alignment reference (JSON).
AuldSource
  Separate Auld Lang Syne source-score data and provenance (JSON).
RhythmSources
  Pickup-note lengths with exact source URLs and SHA-256 hashes.
RightsData
  Approved input fingerprints, source URLs and remediation exclusions.
SampleBank
  Retained binary sample input used by the classical tracker builder.
SampleSources
  Recorded instrument attribution, source hashes and processing notes.
ClubSources
  Original electronic sample origins, loop points, sizes and hashes.
EffectsData
  PCM bank layout, speech words, synthesis tool and sample metadata.
FXARM
  Readable ARM assembly listing for the generated sound callback.
Geometry
  Generated sprite index, dimensions, paths and scene metadata (JSON).
Palette
  Fixed 256-colour palette used for native sprite quantisation (JSON).
Maze
  Text layout of walls, cookies, milk and paths for the original game.

DOCUMENTATION
MusicSources
  Current music provenance and clearly labelled historical work records.
AppSources
  Application/reference credits, source map and development work.
QTM-API (removed)
  The optional copied manual is no longer distributed.
SpeechNotes
  Build-time formant synthesis, native PCM replay and spoken-clock controls.
ISOReview
  Preliminary ISO/IEC 27001 and 42001 evidence/gap review with sources.
Validation
  Current package checks and previous test/limitation records.
History
  The full former top-level ReadMe, preserved as release history.
FileMap
  Mapping from every v2.26 archive member to its current location.
ReadMe
  This build guide and file-by-file inventory.

Community: free-release proposal, responsibility and outstanding review steps.
CheckNight: source/tokenised Santa cue and tracker-repeat checks; PCM synthesis.
Manifest: SHA-256 inventory of delivered files (excludes itself); not a signature.

2.35: DailyElf is the local-date hiding-place/gesture/click implementation.
DailyElfArt draws the 17 original seated/wink/wave sprites. CheckElf validates
date rollover, placement, input precedence and pause/static behaviour.
BuildEffects appends clip 50, the generated "You found me!" phrase.
If eSpeak data is installed separately, set its ESPEAK_DATA_PATH to the
parent containing espeak-ng-data as required by your host installation.

2.35: LicenseUI implements the clickable table, fixed local document links
and direct XURI_Dispatch web links. LicenseData records its displayed rows.
CheckLicences exercises icons, all links and error paths in actual BASIC.
Run: python3 Docs/build/CheckLicences --brandy /path/to/sbrandy
The MIT text is copied into the app and Project/License; Project/Scope covers
original assets/arrangements as well as code. Third-party grants stay separate.

2.37 score rebuild: python3 Engrave in build regenerates both native sets,
OpenScores and ScoreReview. python3 CheckScores reads back all three formats.
HolyArrange rebuilds HolySix from the retained D-flat vocal and piano source. Engrave reads this edition for song 25.
