Merge branch 'master' into dev
This commit is contained in:
@@ -78,6 +78,8 @@ class AudioFile(object):
|
||||
# TODO: If a name isn't provided then create a default name based on
|
||||
# the file name without an extension
|
||||
self.name = name
|
||||
if not self.name:
|
||||
self.name = os.path.basename(os.path.splitext(self.filepath)[0])
|
||||
self.mode = mode
|
||||
self.samplerate = samplerate
|
||||
self.format = format
|
||||
|
||||
@@ -57,7 +57,7 @@ matcher_weightings = {
|
||||
"zerox" : 1.,
|
||||
"rms" : 0.1,
|
||||
"peak": 0.1,
|
||||
"centroid": 0.5.,
|
||||
"centroid": 0.5,
|
||||
"kurtosis": 2.,
|
||||
"skewness": 2.,
|
||||
"variance": 0.,
|
||||
|
||||
Reference in New Issue
Block a user