Skip to main content

Module to_provenance

Module to_provenance 

Source
Expand description

Map parsed WavTags → bounded provenance key/value pairs for NQuin emission.

Keys use Dublin Core terms (dcterms:*), which the semantic layer can q_hash into predicate slots. The result is a fixed-size, stack array plus a count of how many leading entries are populated — no heap, no growth, suitable for emitting provenance NQuins alongside decoded audio.

Constants§

MAX_PROVENANCE_PAIRS
Maximum number of provenance pairs tags_to_provenance can emit — one per field of WavTags.

Functions§

tags_to_provenance
Convert WavTags into up to MAX_PROVENANCE_PAIRS (key, value) pairs.