Skip to main content

Crate plato_audio_jepa

Crate plato_audio_jepa 

Source
Expand description

§plato-audio-jepa

Audio / vibration JEPA for the PLATO nervous system. Processes microphone input into structured room state vectors suitable for downstream tiles.

Structs§

AudioDeadband
Spectral deadband filter — only process chunks when frequency content changes.
AudioTile
Structured room state produced by the audio JEPA from a chunk of audio.
RoomAudioState
16-dimensional audio state vector for a room.

Functions§

audio_state_to_tile
Convert a RoomAudioState into an AudioTile (the output artifact).
compute_band_energy
Compute the energy (sum of squares) in a frequency range.
compute_onset_rate
Estimate the onset rate (sudden volume increases per unit time) from a volume history. Returns the rate of onsets.
compute_spectral_centroid
Compute the spectral centroid (weighted mean of frequency bins). Returns a value in the range of the spectrum magnitudes.
compute_spectrum
Compute a simple DFT returning the magnitude of the first 16 frequency bins. Input is a window of time-domain samples (ideally power-of-2 length).
detect_rhythm
Estimate BPM from a volume envelope by counting peaks. sample_rate is the rate of the volume-history samples (not audio samples).