INNER CODE UNIT · Python
seconds
mdeff/fma · creation.py:98
seconds = int(times[-1])
minutes = int(times[-2])
try:
minutes += 60 * int(times[-3])
except IndexError:
pass
return seconds + 60 * minutes
def trim_audio(dst_dir):
dst_dir = os.path.abspath(dst_dir)
fma_full = os.path.join(dst_dir, 'fma_full')
fma_large = os.path.join(dst_dir, 'fma_large')
tracks = pd.read_csv('raw_tracks.csv', index_col=0)
_create_subdirs(fma_large, tracks)
not_found = pickle.load(open('not_found.pickle', 'rb'))