refmatch 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- refmatch-0.1.0/.github/workflows/ci.yml +33 -0
- refmatch-0.1.0/.gitignore +16 -0
- refmatch-0.1.0/LICENSE +21 -0
- refmatch-0.1.0/PKG-INFO +111 -0
- refmatch-0.1.0/README.md +76 -0
- refmatch-0.1.0/data/seed/metadata.json +1402 -0
- refmatch-0.1.0/data/seed/vectors.npy +0 -0
- refmatch-0.1.0/pyproject.toml +65 -0
- refmatch-0.1.0/scripts/build_seed_db.py +168 -0
- refmatch-0.1.0/src/refmatch/__init__.py +3 -0
- refmatch-0.1.0/src/refmatch/cli.py +239 -0
- refmatch-0.1.0/src/refmatch/data/seed/metadata.json +1402 -0
- refmatch-0.1.0/src/refmatch/data/seed/vectors.npy +0 -0
- refmatch-0.1.0/src/refmatch/database.py +284 -0
- refmatch-0.1.0/src/refmatch/display.py +119 -0
- refmatch-0.1.0/src/refmatch/features.py +249 -0
- refmatch-0.1.0/src/refmatch/matcher.py +140 -0
- refmatch-0.1.0/tests/__init__.py +0 -0
- refmatch-0.1.0/tests/conftest.py +81 -0
- refmatch-0.1.0/tests/test_cli.py +68 -0
- refmatch-0.1.0/tests/test_database.py +157 -0
- refmatch-0.1.0/tests/test_features.py +99 -0
- refmatch-0.1.0/tests/test_matcher.py +220 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
runs-on: ${{ matrix.os }}
|
|
12
|
+
strategy:
|
|
13
|
+
matrix:
|
|
14
|
+
os: [ubuntu-latest, macos-latest]
|
|
15
|
+
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
- uses: actions/setup-python@v5
|
|
19
|
+
with:
|
|
20
|
+
python-version: ${{ matrix.python-version }}
|
|
21
|
+
|
|
22
|
+
- name: Install system deps (Ubuntu)
|
|
23
|
+
if: runner.os == 'Linux'
|
|
24
|
+
run: sudo apt-get update && sudo apt-get install -y libsndfile1
|
|
25
|
+
|
|
26
|
+
- name: Install package
|
|
27
|
+
run: pip install -e ".[dev]"
|
|
28
|
+
|
|
29
|
+
- name: Lint
|
|
30
|
+
run: ruff check src/ tests/
|
|
31
|
+
|
|
32
|
+
- name: Test
|
|
33
|
+
run: pytest tests/ -v --cov=refmatch --cov-report=term-missing --cov-fail-under=80
|
refmatch-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Adel
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
refmatch-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: refmatch
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: AI-powered reference track suggestions for music producers
|
|
5
|
+
Project-URL: Homepage, https://github.com/AdelElo13/refmatch
|
|
6
|
+
Project-URL: Repository, https://github.com/AdelElo13/refmatch
|
|
7
|
+
Project-URL: Issues, https://github.com/AdelElo13/refmatch/issues
|
|
8
|
+
Author-email: Adel <adel@refmatch.dev>
|
|
9
|
+
License-Expression: MIT
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: audio,mastering,mixing,music,production,reference
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Topic :: Multimedia :: Sound/Audio :: Analysis
|
|
21
|
+
Requires-Python: >=3.10
|
|
22
|
+
Requires-Dist: click>=8.0.0
|
|
23
|
+
Requires-Dist: librosa>=0.10.0
|
|
24
|
+
Requires-Dist: numpy>=1.24.0
|
|
25
|
+
Requires-Dist: pyloudnorm>=0.1.1
|
|
26
|
+
Requires-Dist: rich>=13.0.0
|
|
27
|
+
Requires-Dist: soundfile>=0.12.0
|
|
28
|
+
Provides-Extra: dev
|
|
29
|
+
Requires-Dist: pytest-cov>=4.0.0; extra == 'dev'
|
|
30
|
+
Requires-Dist: pytest>=7.0.0; extra == 'dev'
|
|
31
|
+
Requires-Dist: ruff>=0.4.0; extra == 'dev'
|
|
32
|
+
Provides-Extra: faiss
|
|
33
|
+
Requires-Dist: faiss-cpu>=1.7.0; extra == 'faiss'
|
|
34
|
+
Description-Content-Type: text/markdown
|
|
35
|
+
|
|
36
|
+
# RefMatch
|
|
37
|
+
|
|
38
|
+
AI-powered reference track suggestions for music producers.
|
|
39
|
+
|
|
40
|
+
Stop searching for reference tracks. Let RefMatch analyze your audio and suggest the best matches.
|
|
41
|
+
|
|
42
|
+
## Install
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
pip install refmatch
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Usage
|
|
49
|
+
|
|
50
|
+
### Analyze a track
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
refmatch analyze my_track.wav
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Shows BPM, key, loudness (LUFS), dynamic range, brightness, and spectral balance.
|
|
57
|
+
|
|
58
|
+
### Find reference tracks
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
refmatch match my_track.wav
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Returns the top 5 most similar tracks from the database with match scores and explanations.
|
|
65
|
+
|
|
66
|
+
### Dimension-specific matching
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
refmatch match my_track.wav --dimension low-end
|
|
70
|
+
refmatch match my_track.wav --dimension loudness
|
|
71
|
+
refmatch match my_track.wav --dimension brightness
|
|
72
|
+
refmatch match my_track.wav --dimension rhythm
|
|
73
|
+
refmatch match my_track.wav --dimension harmony
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Manage your library
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
# Add a track or folder
|
|
80
|
+
refmatch library add my_reference.wav
|
|
81
|
+
refmatch library add ~/Music/References/ --artist "Various" --genre "Hip-Hop"
|
|
82
|
+
|
|
83
|
+
# List your library
|
|
84
|
+
refmatch library list
|
|
85
|
+
|
|
86
|
+
# Match against your own library only
|
|
87
|
+
refmatch match my_track.wav --library
|
|
88
|
+
|
|
89
|
+
# Remove a track
|
|
90
|
+
refmatch library remove 42
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## How it works
|
|
94
|
+
|
|
95
|
+
RefMatch extracts a 43-dimensional audio feature vector from your track using:
|
|
96
|
+
|
|
97
|
+
- **MFCCs** (timbral characteristics)
|
|
98
|
+
- **Spectral features** (centroid, bandwidth, contrast, rolloff)
|
|
99
|
+
- **Loudness** (integrated LUFS, dynamic range)
|
|
100
|
+
- **Rhythm** (tempo detection)
|
|
101
|
+
- **Harmony** (chroma features, key estimation)
|
|
102
|
+
|
|
103
|
+
It then finds the most similar tracks using cosine similarity, with optional dimension-specific matching to focus on particular aspects of the mix.
|
|
104
|
+
|
|
105
|
+
## Supported formats
|
|
106
|
+
|
|
107
|
+
WAV, MP3, FLAC, OGG, AIFF, M4A
|
|
108
|
+
|
|
109
|
+
## License
|
|
110
|
+
|
|
111
|
+
MIT
|
refmatch-0.1.0/README.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# RefMatch
|
|
2
|
+
|
|
3
|
+
AI-powered reference track suggestions for music producers.
|
|
4
|
+
|
|
5
|
+
Stop searching for reference tracks. Let RefMatch analyze your audio and suggest the best matches.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pip install refmatch
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
### Analyze a track
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
refmatch analyze my_track.wav
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Shows BPM, key, loudness (LUFS), dynamic range, brightness, and spectral balance.
|
|
22
|
+
|
|
23
|
+
### Find reference tracks
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
refmatch match my_track.wav
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Returns the top 5 most similar tracks from the database with match scores and explanations.
|
|
30
|
+
|
|
31
|
+
### Dimension-specific matching
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
refmatch match my_track.wav --dimension low-end
|
|
35
|
+
refmatch match my_track.wav --dimension loudness
|
|
36
|
+
refmatch match my_track.wav --dimension brightness
|
|
37
|
+
refmatch match my_track.wav --dimension rhythm
|
|
38
|
+
refmatch match my_track.wav --dimension harmony
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Manage your library
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
# Add a track or folder
|
|
45
|
+
refmatch library add my_reference.wav
|
|
46
|
+
refmatch library add ~/Music/References/ --artist "Various" --genre "Hip-Hop"
|
|
47
|
+
|
|
48
|
+
# List your library
|
|
49
|
+
refmatch library list
|
|
50
|
+
|
|
51
|
+
# Match against your own library only
|
|
52
|
+
refmatch match my_track.wav --library
|
|
53
|
+
|
|
54
|
+
# Remove a track
|
|
55
|
+
refmatch library remove 42
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## How it works
|
|
59
|
+
|
|
60
|
+
RefMatch extracts a 43-dimensional audio feature vector from your track using:
|
|
61
|
+
|
|
62
|
+
- **MFCCs** (timbral characteristics)
|
|
63
|
+
- **Spectral features** (centroid, bandwidth, contrast, rolloff)
|
|
64
|
+
- **Loudness** (integrated LUFS, dynamic range)
|
|
65
|
+
- **Rhythm** (tempo detection)
|
|
66
|
+
- **Harmony** (chroma features, key estimation)
|
|
67
|
+
|
|
68
|
+
It then finds the most similar tracks using cosine similarity, with optional dimension-specific matching to focus on particular aspects of the mix.
|
|
69
|
+
|
|
70
|
+
## Supported formats
|
|
71
|
+
|
|
72
|
+
WAV, MP3, FLAC, OGG, AIFF, M4A
|
|
73
|
+
|
|
74
|
+
## License
|
|
75
|
+
|
|
76
|
+
MIT
|