Skip to content

project data

Aisjam edited this page Nov 15, 2026 · 1 revision

Project data inspection and cleanup

Home · Section index

Working manual · 0.0.1-alpha · source snapshot 16 November 2026

In Project, move down from USB to DATA (above TIMER) and press A. Clicking the DATA bar also opens the overlay. Up/Down inspects categories; Left/Right selects CLOSE or CLEAR UNUSED; A activates, B closes. The supplied DataTreeView CTG is rendered through the existing semantic nine-slice renderer. Resume appends Project cursor ID 12 for DATA, retaining TIMER's existing ID 11.

Rectangle area is proportional to bytes in the current document's CTP encoding, including chunk headers. It is a view of the current edit, not the last saved file. Colours identify Song/settings, Chains, Phrases, Tables, INST, synths, samples and FX/EQ. Packed PCM is counted under samples, not counted twice under INST. Grey portions are records not reachable from Song; checkering means embedded in CTP. External sample bytes from the existing DATA monitor are shown separately and are not part of the saved-file treemap.

VIS, glyphs and 3D have no CTP payload and show zero. HISTORY reports the shared runtime undo entry count when selected, but occupies no CTP bytes. Fixed chunk headers and required default settings remain visible even when pools are empty. EQ parameter banks occupy fixed space: resetting one does not shrink the file.

CLEAR UNUSED first shows a confirmation with the affected record count. It removes unreferenced Chains, Phrases, INST and Tables, and resets EQ parameter banks whose effect slot currently selects another effect type. It preserves active EQ settings, synth definitions/allocations, resource registry indices and external files. Removing an unused instrument removes its owned packed PCM. Song references on disabled lanes are retained too. Instrument FX, instrument Table assignments (including temporarily disabled assignments), nested Tables and cycles are followed. Random/repeated FX conservatively retain instrument and Table pools because they can generate indirect targets.

Cleanup stops playback, clears existing undo history and refreshes borrowed editor contexts through the existing project generation path. It marks the live document dirty; normal persistence saves the result. Cancellation changes nothing. Neither CTP schema nor audio callback code changes.

core/save/ProjectUsage.hpp owns portable reachability and cleanup; ProjectDataTree.hpp obtains exact category totals through the existing serializer and BinaryReader. Analysis runs only when opening/refreshing the dialog, never in rendering or audio. The scene owns modal input and rendering.

Validation targets: ContourProjectDataTreeTests, ContourSideMenuTests, ContourDialogSkinTests. A visual fixture is available with Contour --snapshot data-tree.bmp --data-tree.

The runtime artwork source and bank snapshot are in Asset/Glyphs/Dialogs. Rebuild ContourBakeDialogSkins, then bake with:

build/bin/Release/ContourBakeDialogSkins.exe Asset/Glyphs/Dialogs src/Editor/glyphEditor/assets/Bescii-All.bmp src/application/DataTreeSkinData.hpp --data-tree

What should be here

Documentation still to add
Annotated current-build screenshots and a recorded controller walkthrough for this topic.

Evidence and verification

Repository sources used for this page:

  • docs/project-data-tree.md

This is a documentation/source review, not a new runtime or hardware test. Physical response, screenshots and listening examples still need verification on a recorded build.

Clone this wiki locally