Skip to content

CMRT 33 - TEST: Track table CMRT column polish, hotcue copy/add, and manual canonical re‑election - #49

Draft
Swarnadip-Kar wants to merge 113 commits into
gsoc-cmrtfrom
temp-cmrt-hotcue-overlay-column-reelection-test
Draft

CMRT 33 - TEST: Track table CMRT column polish, hotcue copy/add, and manual canonical re‑election#49
Swarnadip-Kar wants to merge 113 commits into
gsoc-cmrtfrom
temp-cmrt-hotcue-overlay-column-reelection-test

Conversation

@Swarnadip-Kar

Copy link
Copy Markdown
Owner

Hotcue & Menu Enhancements

  • Added Copy/Add CMRT Hotcues to the Hotcues submenu in Track/WTrackMenu.
  • Disabled Clear > Hotcues in WTrackMenu/DlgTrackInfo while the CMRT overlay is active to prevent accidental deletion.
  • Added manual re-election functionality for Make Canonical CMRT (CmrtGroupingService, TrackDAO, WTrackMenu).

Library & UI Improvements

  • Added a color-spectrum swatch to CmrtDelegate based on the match percentage.
  • Updated the Library to display "No CMRT group" for solo CMRT groups.

Table Model Updates

  • Implemented custom sorting for the CMRT column in BaseSqlTableModel.
  • Padded zeros to the GroupId in the CMRT column within BaseTrackTableModel.

Adds schema revision 41 to extend the library table with
MusicBrainz and AcoustID metadata fields required for
Chromaprint-based lookup workflows.

New columns:
- musicbrainz_recording_id
- musicbrainz_release_id
- musicbrainz_track_id
- musicbrainz_artist_id
- acoustid_id
- acoustid_lookup_at
- acoustid_lookup_status

Also adds indexes for MusicBrainz and AcoustID lookup paths.

The revision is backwards-compatible and does not modify
existing user data.
Adds schema revision 42 extending track_analysis with a
TEXT payload column intended for small metadata blobs such
as audio quality metrics and Chromaprint version metadata.

Raw fingerprint arrays are intentionally not stored in
the database.

Also adds a composite lookup index on (track_id, type).
Adds schema revision 43 introducing database tables for
Chromaprint fingerprint grouping, CMRT membership,
AcoustID queue management, and AcoustID response caching.

New tables:
- fingerprint_metadata
- cmrt_groups
- cmrt_members
- acoustid_queue
- acoustid_cache

Design notes:
- fingerprint_hash is a non-unique SimHash pre-filter
- chroma_sha256 is used as the canonical integrity key
- raw fingerprint arrays are not stored in SQLite
- ON DELETE CASCADE is intentionally omitted

Also adds supporting indexes and bumps
kRequiredSchemaVersion from 42 to 43.
This commit implements reading, writing, and deleting `.chroma`
binary files directly to disk, avoiding BLOBs in the SQLite database.
It also wires TrackFingerprintDao into the broader DAO ecosystem
and adds file cleanup cascades into the central track purging logic.

Changes:
- trackfingerprintdao.h/cpp: Accept UserSettingsPointer to manage
  paths privately in ~/.mixxx/fingerprints/ and add save/load/delete.
  saveChromaFile uses a write-temp-then-rename pattern.
- trackdao.h/cpp: Add TrackFingerprintDao dependency and loop over
  purged tracks in onPurgingTracks() to call deleteChromaFile().
- trackcollection.cpp: Initialize m_trackFingerprintDao with pConfig
  and pass to m_trackDao.
- libraryscanner.h/cpp: Add TrackFingerprintDao member to satisfy
  the updated TrackDAO constructor dependency during background scans.
Integrate AnalyzerChromaprint into AnalyzerThread and
register analyzerchromaprint sources in CMakeLists.txt.
@Swarnadip-Kar Swarnadip-Kar changed the title Temp cmrt hotcue overlay column reelection test CMRT 33 -TEST: Track table CMRT column polish, hotcue copy/add, and manual canonical re‑election Jul 11, 2026
@Swarnadip-Kar Swarnadip-Kar changed the title CMRT 33 -TEST: Track table CMRT column polish, hotcue copy/add, and manual canonical re‑election CMRT 33 - TEST: Track table CMRT column polish, hotcue copy/add, and manual canonical re‑election Jul 11, 2026
@Swarnadip-Kar
Swarnadip-Kar force-pushed the temp-cmrt-hotcue-overlay-column-reelection-test branch from 62b228a to 363fe6f Compare July 11, 2026 16:52
@Swarnadip-Kar
Swarnadip-Kar force-pushed the temp-cmrt-hotcue-overlay-column-reelection-test branch from 363fe6f to 6f4b0e9 Compare July 11, 2026 17:37
@Swarnadip-Kar
Swarnadip-Kar changed the base branch from gsoc-cmrt to gsoc-cmrt-phase1.5 July 17, 2026 08:42
@Swarnadip-Kar
Swarnadip-Kar changed the base branch from gsoc-cmrt-phase1.5 to gsoc-cmrt July 17, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant