{"action":"created","comment":{"url":"https://api.github.com/repos/craffel/pretty-midi/pulls/comments/36322023","id":36322023,"diff_hunk":"@@ -104,7 +133,7 @@ def _load_tempo_changes(self, midi_data):\n         # Everyone ignores type 2.\n         # So, just look at events on track 0\n         for event in midi_data[0]:\n-            if event.name == 'Set Tempo':\n+            if isinstance(event, midi.events.SetTempoEvent):","path":"pretty_midi/pretty_midi.py","position":95,"original_position":95,"commit_id":"52c7cda71f2116855d6f45edf7f3419ae9eb154d","original_commit_id":"52c7cda71f2116855d6f45edf7f3419ae9eb154d","user":{"login":"craffel","id":417568,"avatar_url":"https://avatars.githubusercontent.com/u/417568?v=3","gravatar_id":"","url":"https://api.github.com/users/craffel","html_url":"https://github.com/craffel","followers_url":"https://api.github.com/users/craffel/followers","following_url":"https://api.github.com/users/craffel/following{/other_user}","gists_url":"https://api.github.com/users/craffel/gists{/gist_id}","starred_url":"https://api.github.com/users/craffel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craffel/subscriptions","organizations_url":"https://api.github.com/users/craffel/orgs","repos_url":"https://api.github.com/users/craffel/repos","events_url":"https://api.github.com/users/craffel/events{/privacy}","received_events_url":"https://api.github.com/users/craffel/received_events","type":"User","site_admin":false},"body":"This is better, thanks.","created_at":"2015-08-05T16:25:45Z","updated_at":"2015-08-05T16:25:45Z","html_url":"https://github.com/craffel/pretty-midi/pull/39#discussion_r36322023","pull_request_url":"https://api.github.com/repos/craffel/pretty-midi/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/craffel/pretty-midi/pulls/comments/36322023"},"html":{"href":"https://github.com/craffel/pretty-midi/pull/39#discussion_r36322023"},"pull_request":{"href":"https://api.github.com/repos/craffel/pretty-midi/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/craffel/pretty-midi/pulls/39","id":41606992,"html_url":"https://github.com/craffel/pretty-midi/pull/39","diff_url":"https://github.com/craffel/pretty-midi/pull/39.diff","patch_url":"https://github.com/craffel/pretty-midi/pull/39.patch","issue_url":"https://api.github.com/repos/craffel/pretty-midi/issues/39","number":39,"state":"open","locked":false,"title":"Key signature and Time signature plus other additions","user":{"login":"rafaelvalle","id":2302607,"avatar_url":"https://avatars.githubusercontent.com/u/2302607?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelvalle","html_url":"https://github.com/rafaelvalle","followers_url":"https://api.github.com/users/rafaelvalle/followers","following_url":"https://api.github.com/users/rafaelvalle/following{/other_user}","gists_url":"https://api.github.com/users/rafaelvalle/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelvalle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelvalle/subscriptions","organizations_url":"https://api.github.com/users/rafaelvalle/orgs","repos_url":"https://api.github.com/users/rafaelvalle/repos","events_url":"https://api.github.com/users/rafaelvalle/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelvalle/received_events","type":"User","site_admin":false},"body":"General formatting.\r\nCreating classes and routines related to Key and Time signature changes. They both depend on information provided by _load_tempo_changes and self._update_tick_to_time(max_tick).\r\nAdded parameter not to include_pitch_bends on chromagrams and piano rollls.\r\nAdded routines for converting between different types of key notation.","created_at":"2015-08-04T19:22:02Z","updated_at":"2015-08-05T16:25:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/craffel/pretty-midi/pulls/39/commits","review_comments_url":"https://api.github.com/repos/craffel/pretty-midi/pulls/39/comments","review_comment_url":"https://api.github.com/repos/craffel/pretty-midi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/craffel/pretty-midi/issues/39/comments","statuses_url":"https://api.github.com/repos/craffel/pretty-midi/statuses/52c7cda71f2116855d6f45edf7f3419ae9eb154d","head":{"label":"rafaelvalle:master","ref":"master","sha":"52c7cda71f2116855d6f45edf7f3419ae9eb154d","user":{"login":"rafaelvalle","id":2302607,"avatar_url":"https://avatars.githubusercontent.com/u/2302607?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelvalle","html_url":"https://github.com/rafaelvalle","followers_url":"https://api.github.com/users/rafaelvalle/followers","following_url":"https://api.github.com/users/rafaelvalle/following{/other_user}","gists_url":"https://api.github.com/users/rafaelvalle/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelvalle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelvalle/subscriptions","organizations_url":"https://api.github.com/users/rafaelvalle/orgs","repos_url":"https://api.github.com/users/rafaelvalle/repos","events_url":"https://api.github.com/users/rafaelvalle/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelvalle/received_events","type":"User","site_admin":false},"repo":{"id":38388536,"name":"pretty-midi","full_name":"rafaelvalle/pretty-midi","owner":{"login":"rafaelvalle","id":2302607,"avatar_url":"https://avatars.githubusercontent.com/u/2302607?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelvalle","html_url":"https://github.com/rafaelvalle","followers_url":"https://api.github.com/users/rafaelvalle/followers","following_url":"https://api.github.com/users/rafaelvalle/following{/other_user}","gists_url":"https://api.github.com/users/rafaelvalle/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelvalle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelvalle/subscriptions","organizations_url":"https://api.github.com/users/rafaelvalle/orgs","repos_url":"https://api.github.com/users/rafaelvalle/repos","events_url":"https://api.github.com/users/rafaelvalle/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelvalle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rafaelvalle/pretty-midi","description":"Utility functions for handling MIDI data in a nice/intuitive way.","fork":true,"url":"https://api.github.com/repos/rafaelvalle/pretty-midi","forks_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/forks","keys_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/teams","hooks_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/hooks","issue_events_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/issues/events{/number}","events_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/events","assignees_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/assignees{/user}","branches_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/branches{/branch}","tags_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/tags","blobs_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/git/refs{/sha}","trees_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/statuses/{sha}","languages_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/languages","stargazers_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/stargazers","contributors_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/contributors","subscribers_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/subscribers","subscription_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/subscription","commits_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/commits{/sha}","git_commits_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/git/commits{/sha}","comments_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/comments{/number}","issue_comment_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/issues/comments{/number}","contents_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/contents/{+path}","compare_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/merges","archive_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/downloads","issues_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/issues{/number}","pulls_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/pulls{/number}","milestones_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/milestones{/number}","notifications_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/labels{/name}","releases_url":"https://api.github.com/repos/rafaelvalle/pretty-midi/releases{/id}","created_at":"2015-07-01T18:42:54Z","updated_at":"2015-07-01T18:42:55Z","pushed_at":"2015-08-04T19:17:30Z","git_url":"git://github.com/rafaelvalle/pretty-midi.git","ssh_url":"git@github.com:rafaelvalle/pretty-midi.git","clone_url":"https://github.com/rafaelvalle/pretty-midi.git","svn_url":"https://github.com/rafaelvalle/pretty-midi","homepage":null,"size":6696,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"craffel:master","ref":"master","sha":"30abab22f4ebcc136fa0fba6aa763b5bd1e07879","user":{"login":"craffel","id":417568,"avatar_url":"https://avatars.githubusercontent.com/u/417568?v=3","gravatar_id":"","url":"https://api.github.com/users/craffel","html_url":"https://github.com/craffel","followers_url":"https://api.github.com/users/craffel/followers","following_url":"https://api.github.com/users/craffel/following{/other_user}","gists_url":"https://api.github.com/users/craffel/gists{/gist_id}","starred_url":"https://api.github.com/users/craffel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craffel/subscriptions","organizations_url":"https://api.github.com/users/craffel/orgs","repos_url":"https://api.github.com/users/craffel/repos","events_url":"https://api.github.com/users/craffel/events{/privacy}","received_events_url":"https://api.github.com/users/craffel/received_events","type":"User","site_admin":false},"repo":{"id":11820959,"name":"pretty-midi","full_name":"craffel/pretty-midi","owner":{"login":"craffel","id":417568,"avatar_url":"https://avatars.githubusercontent.com/u/417568?v=3","gravatar_id":"","url":"https://api.github.com/users/craffel","html_url":"https://github.com/craffel","followers_url":"https://api.github.com/users/craffel/followers","following_url":"https://api.github.com/users/craffel/following{/other_user}","gists_url":"https://api.github.com/users/craffel/gists{/gist_id}","starred_url":"https://api.github.com/users/craffel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craffel/subscriptions","organizations_url":"https://api.github.com/users/craffel/orgs","repos_url":"https://api.github.com/users/craffel/repos","events_url":"https://api.github.com/users/craffel/events{/privacy}","received_events_url":"https://api.github.com/users/craffel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/craffel/pretty-midi","description":"Utility functions for handling MIDI data in a nice/intuitive way.","fork":false,"url":"https://api.github.com/repos/craffel/pretty-midi","forks_url":"https://api.github.com/repos/craffel/pretty-midi/forks","keys_url":"https://api.github.com/repos/craffel/pretty-midi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/craffel/pretty-midi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/craffel/pretty-midi/teams","hooks_url":"https://api.github.com/repos/craffel/pretty-midi/hooks","issue_events_url":"https://api.github.com/repos/craffel/pretty-midi/issues/events{/number}","events_url":"https://api.github.com/repos/craffel/pretty-midi/events","assignees_url":"https://api.github.com/repos/craffel/pretty-midi/assignees{/user}","branches_url":"https://api.github.com/repos/craffel/pretty-midi/branches{/branch}","tags_url":"https://api.github.com/repos/craffel/pretty-midi/tags","blobs_url":"https://api.github.com/repos/craffel/pretty-midi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/craffel/pretty-midi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/craffel/pretty-midi/git/refs{/sha}","trees_url":"https://api.github.com/repos/craffel/pretty-midi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/craffel/pretty-midi/statuses/{sha}","languages_url":"https://api.github.com/repos/craffel/pretty-midi/languages","stargazers_url":"https://api.github.com/repos/craffel/pretty-midi/stargazers","contributors_url":"https://api.github.com/repos/craffel/pretty-midi/contributors","subscribers_url":"https://api.github.com/repos/craffel/pretty-midi/subscribers","subscription_url":"https://api.github.com/repos/craffel/pretty-midi/subscription","commits_url":"https://api.github.com/repos/craffel/pretty-midi/commits{/sha}","git_commits_url":"https://api.github.com/repos/craffel/pretty-midi/git/commits{/sha}","comments_url":"https://api.github.com/repos/craffel/pretty-midi/comments{/number}","issue_comment_url":"https://api.github.com/repos/craffel/pretty-midi/issues/comments{/number}","contents_url":"https://api.github.com/repos/craffel/pretty-midi/contents/{+path}","compare_url":"https://api.github.com/repos/craffel/pretty-midi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/craffel/pretty-midi/merges","archive_url":"https://api.github.com/repos/craffel/pretty-midi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/craffel/pretty-midi/downloads","issues_url":"https://api.github.com/repos/craffel/pretty-midi/issues{/number}","pulls_url":"https://api.github.com/repos/craffel/pretty-midi/pulls{/number}","milestones_url":"https://api.github.com/repos/craffel/pretty-midi/milestones{/number}","notifications_url":"https://api.github.com/repos/craffel/pretty-midi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/craffel/pretty-midi/labels{/name}","releases_url":"https://api.github.com/repos/craffel/pretty-midi/releases{/id}","created_at":"2013-08-01T15:50:19Z","updated_at":"2015-04-30T18:25:24Z","pushed_at":"2015-08-04T19:22:03Z","git_url":"git://github.com/craffel/pretty-midi.git","ssh_url":"git@github.com:craffel/pretty-midi.git","clone_url":"https://github.com/craffel/pretty-midi.git","svn_url":"https://github.com/craffel/pretty-midi","homepage":null,"size":7054,"stargazers_count":16,"watchers_count":16,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5,"mirror_url":null,"open_issues_count":10,"forks":5,"open_issues":10,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/craffel/pretty-midi/pulls/39"},"html":{"href":"https://github.com/craffel/pretty-midi/pull/39"},"issue":{"href":"https://api.github.com/repos/craffel/pretty-midi/issues/39"},"comments":{"href":"https://api.github.com/repos/craffel/pretty-midi/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/craffel/pretty-midi/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/craffel/pretty-midi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/craffel/pretty-midi/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/craffel/pretty-midi/statuses/52c7cda71f2116855d6f45edf7f3419ae9eb154d"}}}}