forked from jblsmith/matching-salami
-
Notifications
You must be signed in to change notification settings - Fork 1
/
testing_shifts.txt
51 lines (38 loc) · 1.87 KB
/
testing_shifts.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Make small fingerprint DB out of 860s and 870s:
./audfprint.py new --dbase tmp_870s.pklz ../../../data/SALAMI/audio/87*/audio.mp3
./audfprint.py add --dbase tmp_870s.pklz ../../../data/SALAMI/audio/86*/audio.mp3
# Test against test.mp3, an excerpt of https://www.youtube.com/watch?v=zVwDN-pyL8Y that should match 876 (Ramona)
./audfprint.py match --dbase tmp_870s.pklz ./test.mp3
./audfprint.py match --dbase tmp_870s.pklz ./test.mp3 -N 10 -x 100 -D 1300 -w 10 --find-time-range --time-quantile 0
# Create pitch-shifted versions of test.mp3:
sox test.mp3 test+2.mp3 pitch 2
sox test.mp3 test+4.mp3 pitch 4
sox test.mp3 test+6.mp3 pitch 6
sox test.mp3 test+8.mp3 pitch 8
sox test.mp3 test+10.mp3 pitch 10
sox test.mp3 test+12.mp3 pitch 12
sox test.mp3 test-2.mp3 pitch -2
sox test.mp3 test-4.mp3 pitch -4
sox test.mp3 test-6.mp3 pitch -6
sox test.mp3 test-8.mp3 pitch -8
sox test.mp3 test-10.mp3 pitch -10
sox test.mp3 test-12.mp3 pitch -12
# Create time-stretched versions of test.mp3:
sox test.mp3 test-t-1.mp3 tempo 0.99
sox test.mp3 test-t-2.mp3 tempo 0.98
sox test.mp3 test-t-3.mp3 tempo 0.97
sox test.mp3 test-t+1.mp3 tempo 1.01
sox test.mp3 test-t+2.mp3 tempo 1.02
sox test.mp3 test-t+3.mp3 tempo 1.03
# Create fingerprint database of shifted versions of test.mp3:
./audfprint.py new --dbase allshifts876.pklz ./test*.mp3
./audfprint.py add --dbase allshifts876.pklz ./test-t*.mp3
# Test original 876 against shifted versions:
./audfprint.py match --dbase allshifts876.pklz ../../../data/SALAMI/audio/876/audio.mp3 -N 4 --find-time-range
for salami_id in [set of remaining_ids]:
create +/- 1%, 2% tempo duplicates
create +/- 2, 4 cent duplicates
add duplicates to copy of fingerprint database
run through previous rejects in order of priority
./audfprint.py match --dbase ../salami_public_fpdb.pklz ./test-2.mp3 -N 10 -x 100 -D 1300 -w 10 --find-time-range --time-quantile 0
-o output_filename