{"action":"created","comment":{"url":"https://api.github.com/repos/katspaugh/wavesurfer.js/pulls/comments/24761734","id":24761734,"diff_hunk":"@@ -149,6 +164,27 @@ WaveSurfer.Drawer = {\n \n         this.updateWidth();\n     },\n+    \n+    setWidthnHeight: function (width, height) {\n+        if (width == this.width && height == this.height) { return; }","path":"src/drawer.js","position":46,"original_position":46,"commit_id":"391c42f8103b868d4c386b2020ff9a51fc484c36","original_commit_id":"391c42f8103b868d4c386b2020ff9a51fc484c36","user":{"login":"thijstriemstra","id":305679,"avatar_url":"https://avatars.githubusercontent.com/u/305679?v=3","gravatar_id":"","url":"https://api.github.com/users/thijstriemstra","html_url":"https://github.com/thijstriemstra","followers_url":"https://api.github.com/users/thijstriemstra/followers","following_url":"https://api.github.com/users/thijstriemstra/following{/other_user}","gists_url":"https://api.github.com/users/thijstriemstra/gists{/gist_id}","starred_url":"https://api.github.com/users/thijstriemstra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thijstriemstra/subscriptions","organizations_url":"https://api.github.com/users/thijstriemstra/orgs","repos_url":"https://api.github.com/users/thijstriemstra/repos","events_url":"https://api.github.com/users/thijstriemstra/events{/privacy}","received_events_url":"https://api.github.com/users/thijstriemstra/received_events","type":"User","site_admin":false},"body":"Same issue with the method name..","created_at":"2015-02-16T16:44:19Z","updated_at":"2015-02-16T16:44:19Z","html_url":"https://github.com/katspaugh/wavesurfer.js/pull/356#discussion_r24761734","pull_request_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/pulls/356","_links":{"self":{"href":"https://api.github.com/repos/katspaugh/wavesurfer.js/pulls/comments/24761734"},"html":{"href":"https://github.com/katspaugh/wavesurfer.js/pull/356#discussion_r24761734"},"pull_request":{"href":"https://api.github.com/repos/katspaugh/wavesurfer.js/pulls/356"}}},"pull_request":{"url":"https://api.github.com/repos/katspaugh/wavesurfer.js/pulls/356","id":29383276,"html_url":"https://github.com/katspaugh/wavesurfer.js/pull/356","diff_url":"https://github.com/katspaugh/wavesurfer.js/pull/356.diff","patch_url":"https://github.com/katspaugh/wavesurfer.js/pull/356.patch","issue_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/issues/356","number":356,"state":"open","locked":false,"title":"Multichannel display","user":{"login":"Kage1989","id":2595919,"avatar_url":"https://avatars.githubusercontent.com/u/2595919?v=3","gravatar_id":"","url":"https://api.github.com/users/Kage1989","html_url":"https://github.com/Kage1989","followers_url":"https://api.github.com/users/Kage1989/followers","following_url":"https://api.github.com/users/Kage1989/following{/other_user}","gists_url":"https://api.github.com/users/Kage1989/gists{/gist_id}","starred_url":"https://api.github.com/users/Kage1989/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kage1989/subscriptions","organizations_url":"https://api.github.com/users/Kage1989/orgs","repos_url":"https://api.github.com/users/Kage1989/repos","events_url":"https://api.github.com/users/Kage1989/events{/privacy}","received_events_url":"https://api.github.com/users/Kage1989/received_events","type":"User","site_admin":false},"body":"I've added methods that would allow for multichannel display. The waveform canvas would change it's height accordingly to the number of channels in the audio file. I made separate methods for getPeaks as I realised that the minimap uses the same getPeaks method.","created_at":"2015-02-16T16:03:36Z","updated_at":"2015-02-16T16:44:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ec5b922e2706db44748b99d4b24e5bcdabf56a36","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/pulls/356/commits","review_comments_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/pulls/356/comments","review_comment_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/pulls/comments/{number}","comments_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/issues/356/comments","statuses_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/statuses/391c42f8103b868d4c386b2020ff9a51fc484c36","head":{"label":"Kage1989:multichannel","ref":"multichannel","sha":"391c42f8103b868d4c386b2020ff9a51fc484c36","user":{"login":"Kage1989","id":2595919,"avatar_url":"https://avatars.githubusercontent.com/u/2595919?v=3","gravatar_id":"","url":"https://api.github.com/users/Kage1989","html_url":"https://github.com/Kage1989","followers_url":"https://api.github.com/users/Kage1989/followers","following_url":"https://api.github.com/users/Kage1989/following{/other_user}","gists_url":"https://api.github.com/users/Kage1989/gists{/gist_id}","starred_url":"https://api.github.com/users/Kage1989/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kage1989/subscriptions","organizations_url":"https://api.github.com/users/Kage1989/orgs","repos_url":"https://api.github.com/users/Kage1989/repos","events_url":"https://api.github.com/users/Kage1989/events{/privacy}","received_events_url":"https://api.github.com/users/Kage1989/received_events","type":"User","site_admin":false},"repo":{"id":30543415,"name":"wavesurfer.js","full_name":"Kage1989/wavesurfer.js","owner":{"login":"Kage1989","id":2595919,"avatar_url":"https://avatars.githubusercontent.com/u/2595919?v=3","gravatar_id":"","url":"https://api.github.com/users/Kage1989","html_url":"https://github.com/Kage1989","followers_url":"https://api.github.com/users/Kage1989/followers","following_url":"https://api.github.com/users/Kage1989/following{/other_user}","gists_url":"https://api.github.com/users/Kage1989/gists{/gist_id}","starred_url":"https://api.github.com/users/Kage1989/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kage1989/subscriptions","organizations_url":"https://api.github.com/users/Kage1989/orgs","repos_url":"https://api.github.com/users/Kage1989/repos","events_url":"https://api.github.com/users/Kage1989/events{/privacy}","received_events_url":"https://api.github.com/users/Kage1989/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Kage1989/wavesurfer.js","description":"Navigable waveform built on Web Audio and Canvas","fork":true,"url":"https://api.github.com/repos/Kage1989/wavesurfer.js","forks_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/forks","keys_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/teams","hooks_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/hooks","issue_events_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/issues/events{/number}","events_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/events","assignees_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/assignees{/user}","branches_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/branches{/branch}","tags_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/tags","blobs_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/statuses/{sha}","languages_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/languages","stargazers_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/stargazers","contributors_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/contributors","subscribers_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/subscribers","subscription_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/subscription","commits_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/issues/comments/{number}","contents_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/contents/{+path}","compare_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/merges","archive_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/downloads","issues_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/issues{/number}","pulls_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/pulls{/number}","milestones_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/milestones{/number}","notifications_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/labels{/name}","releases_url":"https://api.github.com/repos/Kage1989/wavesurfer.js/releases{/id}","created_at":"2015-02-09T15:46:59Z","updated_at":"2015-02-12T16:03:09Z","pushed_at":"2015-02-16T15:44:39Z","git_url":"git://github.com/Kage1989/wavesurfer.js.git","ssh_url":"git@github.com:Kage1989/wavesurfer.js.git","clone_url":"https://github.com/Kage1989/wavesurfer.js.git","svn_url":"https://github.com/Kage1989/wavesurfer.js","homepage":"www.wavesurfer.fm","size":22011,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"katspaugh:master","ref":"master","sha":"35031d79ece7bfa825b79eb180906510282b92b0","user":{"login":"katspaugh","id":381895,"avatar_url":"https://avatars.githubusercontent.com/u/381895?v=3","gravatar_id":"","url":"https://api.github.com/users/katspaugh","html_url":"https://github.com/katspaugh","followers_url":"https://api.github.com/users/katspaugh/followers","following_url":"https://api.github.com/users/katspaugh/following{/other_user}","gists_url":"https://api.github.com/users/katspaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/katspaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katspaugh/subscriptions","organizations_url":"https://api.github.com/users/katspaugh/orgs","repos_url":"https://api.github.com/users/katspaugh/repos","events_url":"https://api.github.com/users/katspaugh/events{/privacy}","received_events_url":"https://api.github.com/users/katspaugh/received_events","type":"User","site_admin":false},"repo":{"id":3618686,"name":"wavesurfer.js","full_name":"katspaugh/wavesurfer.js","owner":{"login":"katspaugh","id":381895,"avatar_url":"https://avatars.githubusercontent.com/u/381895?v=3","gravatar_id":"","url":"https://api.github.com/users/katspaugh","html_url":"https://github.com/katspaugh","followers_url":"https://api.github.com/users/katspaugh/followers","following_url":"https://api.github.com/users/katspaugh/following{/other_user}","gists_url":"https://api.github.com/users/katspaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/katspaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katspaugh/subscriptions","organizations_url":"https://api.github.com/users/katspaugh/orgs","repos_url":"https://api.github.com/users/katspaugh/repos","events_url":"https://api.github.com/users/katspaugh/events{/privacy}","received_events_url":"https://api.github.com/users/katspaugh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/katspaugh/wavesurfer.js","description":"Navigable waveform built on Web Audio and Canvas","fork":false,"url":"https://api.github.com/repos/katspaugh/wavesurfer.js","forks_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/forks","keys_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/teams","hooks_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/hooks","issue_events_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/issues/events{/number}","events_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/events","assignees_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/assignees{/user}","branches_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/branches{/branch}","tags_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/tags","blobs_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/statuses/{sha}","languages_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/languages","stargazers_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/stargazers","contributors_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/contributors","subscribers_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/subscribers","subscription_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/subscription","commits_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/issues/comments/{number}","contents_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/contents/{+path}","compare_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/merges","archive_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/downloads","issues_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/issues{/number}","pulls_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/pulls{/number}","milestones_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/milestones{/number}","notifications_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/labels{/name}","releases_url":"https://api.github.com/repos/katspaugh/wavesurfer.js/releases{/id}","created_at":"2012-03-04T14:38:02Z","updated_at":"2015-02-16T16:12:14Z","pushed_at":"2015-02-16T15:40:53Z","git_url":"git://github.com/katspaugh/wavesurfer.js.git","ssh_url":"git@github.com:katspaugh/wavesurfer.js.git","clone_url":"https://github.com/katspaugh/wavesurfer.js.git","svn_url":"https://github.com/katspaugh/wavesurfer.js","homepage":"www.wavesurfer.fm","size":24468,"stargazers_count":686,"watchers_count":686,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":184,"mirror_url":null,"open_issues_count":36,"forks":184,"open_issues":36,"watchers":686,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/katspaugh/wavesurfer.js/pulls/356"},"html":{"href":"https://github.com/katspaugh/wavesurfer.js/pull/356"},"issue":{"href":"https://api.github.com/repos/katspaugh/wavesurfer.js/issues/356"},"comments":{"href":"https://api.github.com/repos/katspaugh/wavesurfer.js/issues/356/comments"},"review_comments":{"href":"https://api.github.com/repos/katspaugh/wavesurfer.js/pulls/356/comments"},"review_comment":{"href":"https://api.github.com/repos/katspaugh/wavesurfer.js/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/katspaugh/wavesurfer.js/pulls/356/commits"},"statuses":{"href":"https://api.github.com/repos/katspaugh/wavesurfer.js/statuses/391c42f8103b868d4c386b2020ff9a51fc484c36"}}}}