Skip to main content

Module modal

Module modal 

Source
Expand description

Q06 Mode 0x0104: Damped acoustic modal resonance bank (32 B per mode).

Enforces positive frequency, signed finite amplitude preservation, nonnegative decay d with exact amplitude T60 = ln(1000)/d (d = 0 => None, never +inf), explicit mode shape and excitation coupling arrays (0x0107), explicit silence/unvoiced status, and clean disambiguation from 0x0104 opaque byte preservation (stride 1 vs stride 32 + Schema 206).

Structs§

ModalBankView
ModalChunkView
Zero-heap borrowed view over verified 0x0104 modal oscillator records.
ModalRecord
Exact 32-byte wire record for mode 0x0104 (modal_resonance).

Constants§

MODAL_RECORD_STRIDE

Functions§

read_modal_bank_qac
Reads and validates a mode 0x0104 modal resonance bank. Rejects opaque_source_preservation (stride == 1 / missing Schema 206) without conflation.
synthesize_modal_sample
Evaluates modal synthesis output at t_s >= 0 for receiver dof, multiplying each valid mode by its mode-shape coupling mode_shapes[mode_shape_index * dofs + dof] and excitation weight.
write_modal_bank_qac
Writes canonical QAC v1 mode 0x0104 modal bank (Schema 206), required mode_shapes & excitation (0x0107) arrays, optional 0x0106 validity mask, and optional per-mode status codes (0x0107).