MaurizioB

Results 25 comments of MaurizioB

For some time I was thinking about this, and tonight I decided to give it a try. I've tested with a few files but didn't have time to test it...

First, don't use the name property, but the class. For example: [...] if isinstance(pattern[i][j], midi.events.NoteOnEvent): print(pattern[i][j]) Then, your code is wrong: the second ```for``` cycle uses the range from the...

Well, according to the [license](https://github.com/vishnubob/python-midi/blob/master/LICENSE) file, it is a MIT license, you can do whatever you want with it as long as you release your project with the same license...

Read it carefully, it says that you have permission to copy, modify, merge, publish, distribute, **sublicense**, and/or **sell**, subject to the condition that the copyright notice (the "Copyright (c) year/author[s]"...

It depends on how the MIDI file has been written. If, for example, the melody is only in a track, with the others being used for accompaniment, that's easy: just...