Skip to main content

Module audio_sidecar_link

Module audio_sidecar_link 

Source
Expand description

Cold-path audio sidecar linker — bake, hash, mmap-ready bytes, optional native file write.

Links baked tensors to q42:hasSpectralSheet NQuin objects at ingest.

Enums§

SidecarBakeKind

Functions§

bake_audio_sidecar_into
Bake sidecar bytes into out; returns (content_hash, bytes_written).
compile_spectral_sheet_quin
Emit linker NQuin: subject → q42:hasSpectralSheet → sheet index (lower 60 bits of hash).
enrich_preview_from_sidecar
Hot path: overlay mmap/CQT/STFT column into uniform preview bins.
format_sidecar_relpath
Write relative path spectral/audio/{hash:016x}.bin into caller buffer; returns length.
link_tensor_audio_sidecar
Bake from tensor preview + link quin for cold ingest pipelines.
sidecar_content_hash
FNV-1a over preview bins — stable sidecar filename hash.
write_sidecar_file