{"action":"closed","issue":{"url":"https://api.github.com/repos/vishnubob/python-midi/issues/104","repository_url":"https://api.github.com/repos/vishnubob/python-midi","labels_url":"https://api.github.com/repos/vishnubob/python-midi/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/vishnubob/python-midi/issues/104/comments","events_url":"https://api.github.com/repos/vishnubob/python-midi/issues/104/events","html_url":"https://github.com/vishnubob/python-midi/issues/104","id":194806230,"number":104,"title":"Tracks do NOT contain NoteOffEvent after read_midifile(\"my.mid\")?","user":{"login":"star013","id":12506008,"avatar_url":"https://avatars.githubusercontent.com/u/12506008?v=3","gravatar_id":"","url":"https://api.github.com/users/star013","html_url":"https://github.com/star013","followers_url":"https://api.github.com/users/star013/followers","following_url":"https://api.github.com/users/star013/following{/other_user}","gists_url":"https://api.github.com/users/star013/gists{/gist_id}","starred_url":"https://api.github.com/users/star013/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/star013/subscriptions","organizations_url":"https://api.github.com/users/star013/orgs","repos_url":"https://api.github.com/users/star013/repos","events_url":"https://api.github.com/users/star013/events{/privacy}","received_events_url":"https://api.github.com/users/star013/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-11T01:38:04Z","updated_at":"2016-12-11T01:51:40Z","closed_at":"2016-12-11T01:51:40Z","body":"Hello!\r\n\r\nI try to use python-midi to read a midi file, and parse the note events in it. However, I have trouble distinguishing when a note ends. Some of the note events are listed here:\r\n`midi.TrackNameEvent(tick=0, text='Piano right', data=[80, 105, 97, 110, 111, 32, 114, 105, 103, 104, 116])\r\nmidi.ProgramChangeEvent(tick=0, channel=0, data=[0])\r\nmidi.ControlChangeEvent(tick=0, channel=0, data=[7, 100])\r\nmidi.ControlChangeEvent(tick=0, channel=0, data=[10, 64])\r\nmidi.NoteOnEvent(tick=0, channel=0, data=[69, 60])\r\nmidi.NoteOnEvent(tick=0, channel=0, data=[74, 73])\r\nmidi.TextMetaEvent(tick=0, text='bdca426d104a26ac9dcb070447587523', data=[98, 100, 99, 97, 52, 50, 54, 100, 49, 48, 52, 97, 50, 54, 97, 99, 57, 100, 99, 98, 48, 55, 48, 52, 52, 55, 53, 56, 55, 53, 50, 51])\r\nmidi.ControlChangeEvent(tick=0, channel=0, data=[91, 127])\r\nmidi.NoteOnEvent(tick=0, channel=0, data=[66, 60])\r\nmidi.NoteOnEvent(tick=480, channel=0, data=[66, 0])\r\nmidi.NoteOnEvent(tick=0, channel=0, data=[74, 0])\r\nmidi.NoteOnEvent(tick=0, channel=0, data=[69, 0])\r\nmidi.NoteOnEvent(tick=480, channel=0, data=[79, 66])\r\nmidi.NoteOnEvent(tick=120, channel=0, data=[78, 55])\r\nmidi.NoteOnEvent(tick=12, channel=0, data=[79, 0])\r\nmidi.NoteOnEvent(tick=108, channel=0, data=[76, 54])\r\nmidi.NoteOnEvent(tick=12, channel=0, data=[78, 0])\r\nmidi.NoteOnEvent(tick=108, channel=0, data=[78, 54])\r\nmidi.NoteOnEvent(tick=12, channel=0, data=[76, 0])\r\n`\r\n\r\nYou see, there is no NoteOffEvent. It is quite strange. The midi files are obtained from [http://www.piano-midi.de/zip/mozart.zip](http://www.piano-midi.de/zip/mozart.zip) and they can be played on my laptop accurately. I guess there must be something wrong in the read midi module. Could you help me?\r\n\r\nThanks.\r\n\r\n> "}}
{"actor":{"display_login":"star013"}}