Skip to main content

The Preamble

The preamble is the Rosetta Stone of a .life file.

It must contain sufficient information for a reader with no prior knowledge of LIFE to understand the structure of what follows. It is the first section of every .life file and must appear before the codec and events.

Required fields

FieldTypeDescription
formatstringAlways "LIFE". Identifies the file type.
versionstringSpecification version. Currently "1.0".
createdstringISO 8601 date of creation.
scalingobjectThe mathematical bridge between source and target spectra.
referenceobjectThe anchor frequency for all ratio calculations.
spectrumobjectThe target electromagnetic range.

The scaling object

The scaling object must explain not just the value used but the reasoning behind it. A .life file is designed to be interpretable without external documentation - the file must explain itself.

FieldTypeDescription
methodstring"octave_halving" in v1.0
constantstringHuman-readable expression - "2^40"
valueintegerNumeric value - 1099511627776
rationalstringPlain language explanation. Required.

The reference object

FieldTypeDescription
frequency_hzfloatReference frequency. Conventionally 440.0 (concert A4).
ratiostringAlways "1:1".
descriptionstringHuman-readable description.

The spectrum object

FieldTypeDescription
min_nmintegerMinimum wavelength in nanometres.
max_nmintegerMaximum wavelength in nanometres.
descriptionstringHuman-readable description.

Example

"preamble": {
"format": "LIFE",
"version": "1.0",
"created": "2026-05-05",
"scaling": {
"method": "octave_halving",
"constant": "2^40",
"value": 1099511627776,
"rational": "40 octaves separate the audible and visible spectra.
Dividing any acoustic frequency by 2^40 maps it into
the electromagnetic range while preserving all harmonic
relationships. This constant is physically derived,
not conventionally assigned."
},
"reference": {
"frequency_hz": 440.0,
"ratio": "1:1",
"description": "Concert pitch A4."
},
"spectrum": {
"min_nm": 380,
"max_nm": 700,
"description": "Visible light, violet to red."
}
}