llSourcell/Music_Generator_Demo

cannot merge samples

Opened this issue · 3 comments

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?

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

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.

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.