Skip to main content

sense_acoustic_to_fact

Function sense_acoustic_to_fact 

Source
pub fn sense_acoustic_to_fact(
    samples: &[f64],
    sample_rate: f64,
    threshold: f64,
    agent: u64,
    environment: u64,
    standpoint: u64,
    norms: &[NQuin],
    now_unix: u32,
) -> SenseOutcome
Expand description

The Phase-4 pipeline. Microphone PCM samples → (consent gate) → forward DSP → the ∫Ψ > τ → Fact bridge → a discrete Fact NQuin, or a refusal.

Order is deliberate: the consent gate runs first — if agent has no Active consent to capture environment, the function returns SenseOutcome::Refused and the signal is never turned into anything. When consented, the integrated time-domain energy is thresholded by the inherited bridge; on a crossing, the dominant tonal frequency (forward DFT) is attached to a discrete fact. Raw samples never leave this call.