Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I generate music, there is a error about byte range(0,256) #77

Open
KazuhiraDZ opened this issue Jun 2, 2018 · 4 comments
Open

Comments

@KazuhiraDZ
Copy link

Hi, I install all requirements and run the generate code.
When I run python generate
there is a error

Writing file out/samples/output_0.mid
Traceback (most recent call last):
File "generate.py", line 153, in
main()
File "generate.py", line 150, in main
write_file('output', generate(models, args.bars, styles))
File "generate.py", line 134, in write_file
midi.write_midifile(fpath, mf)
File "/home/inspur/anaconda3/lib/python3.6/site-packages/midi/fileio.py", line 169, in write_midifile
return write_midifile(out,pattern)
File "/home/inspur/anaconda3/lib/python3.6/site-packages/midi/fileio.py", line 171, in write_midifile
return writer.write(pattern)
File "/home/inspur/anaconda3/lib/python3.6/site-packages/midi/fileio.py", line 105, in write
self.write_track(track)
File "/home/inspur/anaconda3/lib/python3.6/site-packages/midi/fileio.py", line 122, in write_track
buf.extend(self.encode_midi_event(event))
File "/home/inspur/anaconda3/lib/python3.6/site-packages/midi/fileio.py", line 161, in encode_midi_event
ret.extend(event.data)
ValueError: byte must be in range(0, 256)

I just use the pertained model, I am not sure if it is my environment's mismatch.

@frankfan96
Copy link

I jut got the same question.
Have you solved it?

@paskahlisanjas
Copy link

Any solution to this problem?

@RankoR
Copy link

RankoR commented Jun 18, 2019

Same here. Any fixes?

@whiplashf
Copy link

Have anyone solved this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants