VikParuchuri / evolve-music2

Evolve music automatically with python -- rewrite of evolve-music.
MIT License
41 stars 6 forks source link

Having issues with a index in construct_tracks #1

Open kthakore opened 9 years ago

kthakore commented 9 years ago

Hey Vik,

I am getting this:

`generate_tracks(track_generator, track_count=track_count) File "evolve_tracks.py", line 17, in generate_tracks track_generator.create_pools(track_count * settings.POOL_MULTIPLIER) File "/vagrant/evolve-music2/construct_tracks.py", line 220, in create_pools track = generate_audio_track(self.data, self.note_phrases, settings.TRACK_LENGTH, instrument=instrument) File "/vagrant/evolve-music2/construct_tracks.py", line 93, in generate_audio_track note_mats = [d["note_matrix"][instrument] for d in data] KeyError: 99``

VikParuchuri commented 9 years ago

It looks like the d["note_matrix"] is missing the instrument key "99". What steps did you do before hitting the error? I'll look more into it over the weekend.

kthakore commented 9 years ago

I ran the crawler and then ran the code .I wanted to add some of my own midis for testing so I did that too. I will get more specific steps in a bit

On Fri, Feb 20, 2015 at 9:09 PM, Vik Paruchuri notifications@github.com wrote:

It looks like the d["note_matrix"] is missing the instrument key "99". What steps did you do before hitting the error? I'll look more into it over the weekend.

— Reply to this email directly or view it on GitHub https://github.com/VikParuchuri/evolve-music2/issues/1#issuecomment-75350494 .

skeletonsaurus commented 9 years ago

I am getting this error: raise TypeError, "Bad header in MIDI file." TypeError: Bad header in MIDI file.

How should this be resolved? I checked data/em.log and it was empty.

VikParuchuri commented 9 years ago

@skeletonsaurus It may be the midi file you were using was bad. Maybe try adding a comment to print he name of the file before the error pops up?

skeletonsaurus commented 9 years ago

Ok. Thanks. I'll try that out.

On Mon, Jun 8, 2015, 1:55 PM Vik Paruchuri notifications@github.com wrote:

@skeletonsaurus https://github.com/skeletonsaurus It may be the midi file you were using was bad. Maybe try adding a comment to print he name of the file before the error pops up?

— Reply to this email directly or view it on GitHub https://github.com/VikParuchuri/evolve-music2/issues/1#issuecomment-110107091 .