Skip to main content

AI-powered reference track suggestions for music producers

Project description

RefMatch

AI-powered reference track suggestions for music producers.

Stop searching for reference tracks. Drop in your audio, get instant matches based on how it actually sounds — not just metadata.

PyPI License: MIT Python 3.10+

Why RefMatch?

  • Spotify suggests by vibe. RefMatch matches by mix characteristics. Spectral balance, loudness, dynamics, rhythm — the things that matter when you're mixing.
  • CLAP neural embeddings understand how your track sounds, not just its frequency stats. Hybrid matching combines perceptual + technical similarity.
  • Works offline. No API calls, no cloud. Your audio stays on your machine.
  • Open source. The engine is free. Bring your own library or use the built-in seed database.

Install

# Core (DSP matching only)
pip install refmatch

# With neural embeddings (recommended)
pip install refmatch[clap]

Quick Start

# Analyze your track
refmatch analyze my_track.wav

# Find reference tracks
refmatch match my_track.wav

# Match on specific dimensions
refmatch match my_track.wav --dimension low-end
refmatch match my_track.wav --dimension loudness
refmatch match my_track.wav --dimension brightness

How It Works

Two matching engines

DSP Features (43 dimensions) — always available:

  • MFCCs (timbral fingerprint)
  • Spectral features (centroid, bandwidth, contrast, rolloff)
  • Loudness (integrated LUFS, dynamic range)
  • Rhythm (tempo detection)
  • Harmony (chroma features, key estimation)

CLAP Neural Embeddings (512 dimensions) — with refmatch[clap]:

  • Pretrained audio model (laion/clap-htsat-fused)
  • Captures perceptual similarity — tracks that sound alike even with different spectral stats
  • Segment-based averaging for full-track analysis

Hybrid scoring: 60% CLAP + 40% DSP when both are available. Falls back to DSP-only gracefully.

Dimension-specific matching

Focus on what matters for your mix:

Dimension What it matches on
low-end Sub/bass energy, spectral contrast in low bands
loudness LUFS, dynamic range, RMS energy
brightness Spectral centroid, rolloff, high-frequency contrast
rhythm Tempo, transient density
harmony Chroma features, key similarity

Manage Your Library

# Add tracks (CLAP embeddings extracted automatically)
refmatch library add my_reference.wav
refmatch library add ~/Music/References/ --artist "Various" --genre "Hip-Hop"

# List your library
refmatch library list

# Match against your own library only
refmatch match my_track.wav --library

# Remove a track
refmatch library remove 42

Seed Database

RefMatch ships with 500+ CC-licensed tracks across 25 genres from Jamendo. The seed database loads automatically on first use — no setup needed.

Supported Formats

WAV, MP3, FLAC, OGG, AIFF, M4A

For Developers

# Install with dev dependencies
pip install -e ".[dev,clap]"

# Run tests
pytest

# Lint
ruff check src/ tests/

Roadmap

  • VST3/CLAP plugin for in-DAW matching
  • Natural language queries ("find something with heavy sub-bass and airy vocals")
  • User feedback loop for personalized ranking
  • Segment-based matching (intro/verse/chorus/drop)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

refmatch-0.2.0.tar.gz (248.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

refmatch-0.2.0-py3-none-any.whl (122.1 kB view details)

Uploaded Python 3

File details

Details for the file refmatch-0.2.0.tar.gz.

File metadata

  • Download URL: refmatch-0.2.0.tar.gz
  • Upload date:
  • Size: 248.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for refmatch-0.2.0.tar.gz
Algorithm Hash digest
SHA256 09e9a3287f9475e922191f7c6946b65e94fda8ccfaeea6594118c4d5acd8582b
MD5 e39d50fae1bb1d81d873aecb39c14bba
BLAKE2b-256 29ecc91486c5bdf1f27ca74895e498fe42400944c91199f4528812c7146045ab

See more details on using hashes here.

File details

Details for the file refmatch-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: refmatch-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 122.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for refmatch-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b9842fef3ebb6f0bb88065ce3aa7736b4cd7836a803fa5d89fe530670921b89
MD5 1254ace1f33c160d3ef017c3a1ce7a41
BLAKE2b-256 bf99f6a55fd72357e16bb27d4c05b1c9aa8a52c543201ad15e4db0a8c2fd47f9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page