-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefaults.py
More file actions
26 lines (19 loc) · 929 Bytes
/
defaults.py
File metadata and controls
26 lines (19 loc) · 929 Bytes
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
"""
Stores the globally-used default configuration values associated with sampling, fingerprinting, and matching the audio files
"""
# The target sampling rate used to read in an audio file
SAMPLING_RATE: int = 44100
# The fractional portion of intensities for which the cutoff is selected.
# E.g. frac_cut=0.8 will produce a cutoff intensity such that the bottom 80%
# of intensities are excluded.
MIN_FRAC_AMP_CUTOFF: float = 0.77
# The neighborhood radius used for determining if a spectrogram value
# is a local peak. Specified in spectrogram cells.
LOCAL_PEAK_NN_RADIUS: int = 20
# Given a spectrogram peak, indicates the maximum number of subsequent peaks to
# be used to form fingerprint features.
FINGERPRINT_FANOUT: int = 15
# The number of data points used in each block for the FFT.
NFFT: int = 4096
# The minimum number of fingerprint matches needed to conclude song and input are a match.
THRESHOLD: int = 10