llSourcell / Music_Generator_Demo

Music Generator Demo by @Sirajology on Youtube
246 stars 123 forks source link

cannot merge samples #24

Open EvanMu96 opened 6 years ago

EvanMu96 commented 6 years ago

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 6 years ago

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 6 years ago

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 5 years ago

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.