formatHpcp

fun formatHpcp(frames: List<FloatArray>, hopSize: Int, sampleRate: Int): ByteArray

Encode HPCP chroma frames as binary HPCP chroma bytes.

Inverse of SonixParser.parseHpcp. See com.musicmuni.voxatrace.sonix.model.HpcpData for the layout.

Return

Encoded binary HPCP content.

Parameters

frames

Chroma vectors, one per frame (each the same length).

hopSize

Hop between frames in samples.

sampleRate

Sample rate the frames were computed at, in Hz.