cannot merge samples
Opened this issue · 3 comments
EvanMu96 commented
Hi everyone! I met a problem that when I excute the script "merge_samples.py", the result of np.shape(songs) is (0, 156). Obviously the final file is an empty file. What's wrong with my program?
patalanov commented
I faced same problem.
check here
files = glob.glob('generated*.mid*')
if your files all start with 'generated' and if they are in the same directory as merge_samples.py
jonathancychow commented
I've managed to get it works by changing line 21 to if np.array(song).shape[0] > 0. It seems to work but I am sure the 10 put there for a reason and I do not fully understand why.
Yenene78 commented
Same issue. But I just wonder as I merge by removing the strange "if" mentioned above, the merged final.mid sounded short, differing from that provided in the repository.