Audio & MIDI

FLAC residual bit trace

Decode an extracted Rice or escape-coded residual prefix with exact bit spans.

Your inputs

Start with an example

Your inputs stay in your browser.

Your result

Example result

How it works

Read the method and partition headers, then decode Rice unary/remainder values or signed raw samples. Subtract predictor warm-up samples from the first partition only. Preserve any remaining bits as uninterpreted tail.

The example splits eight samples into two partitions. After one warm-up sample, the residuals are 0, −1, 2, −4, −1, 0, 3 and consume 39 significant bits.

Limits

Extracted residual prefix only: JSON input up to 2 MB, block size 1–65535, predictor order 0–32 and a 16 MiB trace. Offsets ignore ASCII whitespace. Follows RFC 9639’s strict partition-size rule; a documented libFLAC edge accepts equality. No frame/subframe parsing, PCM reconstruction, CRC/MD5, full-file or audio-quality verdict.