from twelve_tone.composer import Composer
c = Composer()
c.compose()
c.save_to_midi()
throws error: required argument is not an integer.
This happens because miditime saves pitch info using struct.pack('>B',event.pitch), which requires the second argument to be an integer. Therefore, the problem is fixed by casting numbers in c.matrix to int.
Running
throws
error: required argument is not an integer
.This happens because miditime saves pitch info using
struct.pack('>B',event.pitch)
, which requires the second argument to be an integer. Therefore, the problem is fixed by casting numbers inc.matrix
toint
.Environment info: