Files
SpotiFLAC-Mobile/android/app/src
zarzet eb6e4bb1a8 feat(autoplay): analyze how songs sound
Analyze each Library song once in the background, on the device, and
let Autoplay pick songs that sound like the session and flow into each
other.

- Decode two 24 s mono windows at about 30% and 60% of a song with one
  FFmpeg thread, describe them natively, and delete the PCM at once.
  Documents are opened through FFmpegKit's SAF parameter, not copied.
- Keep features in a small database of their own, keyed by path with
  the file's size, modification time and the analysis version. Failed
  songs are recorded and tried again only once the file or the version
  changes; rows of songs the Library no longer has are removed.
- Sweep one song at a time with rests four times the work, never in
  the first 20 s of a song or while AutoMix mixes. Android sweeps only
  while charging unless the listener allows battery, desktop sweeps
  at that pace, iOS analyzes only the song playing. The song playing
  is analyzed 20 s after it starts, on battery too.
- Add a sound signal: up to +5 for sounding like the latest songs,
  with timbre weighing most over features standardized across the
  songs at hand; each pick loses up to 1.5 for a tempo jump (octaves
  folded) and 1.5 for an energy jump, and gains 0.5 for a neighboring
  key. Unanalyzed songs score and follow as an average analyzed one.
2026-10-25 23:36:14 +07:00
..