{"action":"created","comment":{"url":"https://api.github.com/repos/bmcfee/librosa/pulls/comments/53158334","id":53158334,"diff_hunk":"@@ -571,6 +571,10 @@ def constant_q(sr, fmin=None, n_bins=84, bins_per_octave=12, tuning=0.0,\n                                   'filter_scale', filter_scale,\n                                   '0.4.2', '0.5.0')\n \n+    # If filter_scale is None, auto-tune it based on frequency resolution\n+    if filter_scale is None:\n+        filter_scale = (2.0**(1./bins_per_octave) - 1.0)/(2.0**(1./12) - 1.0)","path":"librosa/filters.py","position":15,"original_position":15,"commit_id":"28a0e63b965ef6038b2570c7c7c2299f1b97443d","original_commit_id":"28a0e63b965ef6038b2570c7c7c2299f1b97443d","user":{"login":"bmcfee","id":1190540,"avatar_url":"https://avatars.githubusercontent.com/u/1190540?v=3","gravatar_id":"","url":"https://api.github.com/users/bmcfee","html_url":"https://github.com/bmcfee","followers_url":"https://api.github.com/users/bmcfee/followers","following_url":"https://api.github.com/users/bmcfee/following{/other_user}","gists_url":"https://api.github.com/users/bmcfee/gists{/gist_id}","starred_url":"https://api.github.com/users/bmcfee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmcfee/subscriptions","organizations_url":"https://api.github.com/users/bmcfee/orgs","repos_url":"https://api.github.com/users/bmcfee/repos","events_url":"https://api.github.com/users/bmcfee/events{/privacy}","received_events_url":"https://api.github.com/users/bmcfee/received_events","type":"User","site_admin":false},"body":"Yeah. This might actually just take a small refactor.  Ideally, it should be isolated to cqt_filters, but the value is actually needed in a few places.","created_at":"2016-02-17T12:45:20Z","updated_at":"2016-02-17T12:45:20Z","html_url":"https://github.com/bmcfee/librosa/pull/306#discussion_r53158334","pull_request_url":"https://api.github.com/repos/bmcfee/librosa/pulls/306","_links":{"self":{"href":"https://api.github.com/repos/bmcfee/librosa/pulls/comments/53158334"},"html":{"href":"https://github.com/bmcfee/librosa/pull/306#discussion_r53158334"},"pull_request":{"href":"https://api.github.com/repos/bmcfee/librosa/pulls/306"}}},"pull_request":{"url":"https://api.github.com/repos/bmcfee/librosa/pulls/306","id":59588731,"html_url":"https://github.com/bmcfee/librosa/pull/306","diff_url":"https://github.com/bmcfee/librosa/pull/306.diff","patch_url":"https://github.com/bmcfee/librosa/pull/306.patch","issue_url":"https://api.github.com/repos/bmcfee/librosa/issues/306","number":306,"state":"open","locked":false,"title":"CQT updates","user":{"login":"bmcfee","id":1190540,"avatar_url":"https://avatars.githubusercontent.com/u/1190540?v=3","gravatar_id":"","url":"https://api.github.com/users/bmcfee","html_url":"https://github.com/bmcfee","followers_url":"https://api.github.com/users/bmcfee/followers","following_url":"https://api.github.com/users/bmcfee/following{/other_user}","gists_url":"https://api.github.com/users/bmcfee/gists{/gist_id}","starred_url":"https://api.github.com/users/bmcfee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmcfee/subscriptions","organizations_url":"https://api.github.com/users/bmcfee/orgs","repos_url":"https://api.github.com/users/bmcfee/repos","events_url":"https://api.github.com/users/bmcfee/events{/privacy}","received_events_url":"https://api.github.com/users/bmcfee/received_events","type":"User","site_admin":false},"body":"Updates to CQT re: #165\r\n\r\n- [x] added a `scale` parameter to `resample` so that output signals have the same energy after resampling\r\n- [x] set `real=False` in `cqt` by default","created_at":"2016-02-17T02:44:04Z","updated_at":"2016-02-17T12:45:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bff5a7627cef043480a41f72a3d7c810893a609c","assignee":{"login":"bmcfee","id":1190540,"avatar_url":"https://avatars.githubusercontent.com/u/1190540?v=3","gravatar_id":"","url":"https://api.github.com/users/bmcfee","html_url":"https://github.com/bmcfee","followers_url":"https://api.github.com/users/bmcfee/followers","following_url":"https://api.github.com/users/bmcfee/following{/other_user}","gists_url":"https://api.github.com/users/bmcfee/gists{/gist_id}","starred_url":"https://api.github.com/users/bmcfee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmcfee/subscriptions","organizations_url":"https://api.github.com/users/bmcfee/orgs","repos_url":"https://api.github.com/users/bmcfee/repos","events_url":"https://api.github.com/users/bmcfee/events{/privacy}","received_events_url":"https://api.github.com/users/bmcfee/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/bmcfee/librosa/milestones/8","html_url":"https://github.com/bmcfee/librosa/milestones/0.5","labels_url":"https://api.github.com/repos/bmcfee/librosa/milestones/8/labels","id":949792,"number":8,"title":"0.5","description":null,"creator":{"login":"bmcfee","id":1190540,"avatar_url":"https://avatars.githubusercontent.com/u/1190540?v=3","gravatar_id":"","url":"https://api.github.com/users/bmcfee","html_url":"https://github.com/bmcfee","followers_url":"https://api.github.com/users/bmcfee/followers","following_url":"https://api.github.com/users/bmcfee/following{/other_user}","gists_url":"https://api.github.com/users/bmcfee/gists{/gist_id}","starred_url":"https://api.github.com/users/bmcfee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmcfee/subscriptions","organizations_url":"https://api.github.com/users/bmcfee/orgs","repos_url":"https://api.github.com/users/bmcfee/repos","events_url":"https://api.github.com/users/bmcfee/events{/privacy}","received_events_url":"https://api.github.com/users/bmcfee/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":0,"state":"open","created_at":"2015-01-24T18:03:39Z","updated_at":"2016-02-17T02:44:04Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/bmcfee/librosa/pulls/306/commits","review_comments_url":"https://api.github.com/repos/bmcfee/librosa/pulls/306/comments","review_comment_url":"https://api.github.com/repos/bmcfee/librosa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bmcfee/librosa/issues/306/comments","statuses_url":"https://api.github.com/repos/bmcfee/librosa/statuses/28a0e63b965ef6038b2570c7c7c2299f1b97443d","head":{"label":"bmcfee:cqt-mods","ref":"cqt-mods","sha":"28a0e63b965ef6038b2570c7c7c2299f1b97443d","user":{"login":"bmcfee","id":1190540,"avatar_url":"https://avatars.githubusercontent.com/u/1190540?v=3","gravatar_id":"","url":"https://api.github.com/users/bmcfee","html_url":"https://github.com/bmcfee","followers_url":"https://api.github.com/users/bmcfee/followers","following_url":"https://api.github.com/users/bmcfee/following{/other_user}","gists_url":"https://api.github.com/users/bmcfee/gists{/gist_id}","starred_url":"https://api.github.com/users/bmcfee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmcfee/subscriptions","organizations_url":"https://api.github.com/users/bmcfee/orgs","repos_url":"https://api.github.com/users/bmcfee/repos","events_url":"https://api.github.com/users/bmcfee/events{/privacy}","received_events_url":"https://api.github.com/users/bmcfee/received_events","type":"User","site_admin":false},"repo":{"id":6309729,"name":"librosa","full_name":"bmcfee/librosa","owner":{"login":"bmcfee","id":1190540,"avatar_url":"https://avatars.githubusercontent.com/u/1190540?v=3","gravatar_id":"","url":"https://api.github.com/users/bmcfee","html_url":"https://github.com/bmcfee","followers_url":"https://api.github.com/users/bmcfee/followers","following_url":"https://api.github.com/users/bmcfee/following{/other_user}","gists_url":"https://api.github.com/users/bmcfee/gists{/gist_id}","starred_url":"https://api.github.com/users/bmcfee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmcfee/subscriptions","organizations_url":"https://api.github.com/users/bmcfee/orgs","repos_url":"https://api.github.com/users/bmcfee/repos","events_url":"https://api.github.com/users/bmcfee/events{/privacy}","received_events_url":"https://api.github.com/users/bmcfee/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bmcfee/librosa","description":"Python library for audio and music analysis","fork":false,"url":"https://api.github.com/repos/bmcfee/librosa","forks_url":"https://api.github.com/repos/bmcfee/librosa/forks","keys_url":"https://api.github.com/repos/bmcfee/librosa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bmcfee/librosa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bmcfee/librosa/teams","hooks_url":"https://api.github.com/repos/bmcfee/librosa/hooks","issue_events_url":"https://api.github.com/repos/bmcfee/librosa/issues/events{/number}","events_url":"https://api.github.com/repos/bmcfee/librosa/events","assignees_url":"https://api.github.com/repos/bmcfee/librosa/assignees{/user}","branches_url":"https://api.github.com/repos/bmcfee/librosa/branches{/branch}","tags_url":"https://api.github.com/repos/bmcfee/librosa/tags","blobs_url":"https://api.github.com/repos/bmcfee/librosa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bmcfee/librosa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bmcfee/librosa/git/refs{/sha}","trees_url":"https://api.github.com/repos/bmcfee/librosa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bmcfee/librosa/statuses/{sha}","languages_url":"https://api.github.com/repos/bmcfee/librosa/languages","stargazers_url":"https://api.github.com/repos/bmcfee/librosa/stargazers","contributors_url":"https://api.github.com/repos/bmcfee/librosa/contributors","subscribers_url":"https://api.github.com/repos/bmcfee/librosa/subscribers","subscription_url":"https://api.github.com/repos/bmcfee/librosa/subscription","commits_url":"https://api.github.com/repos/bmcfee/librosa/commits{/sha}","git_commits_url":"https://api.github.com/repos/bmcfee/librosa/git/commits{/sha}","comments_url":"https://api.github.com/repos/bmcfee/librosa/comments{/number}","issue_comment_url":"https://api.github.com/repos/bmcfee/librosa/issues/comments{/number}","contents_url":"https://api.github.com/repos/bmcfee/librosa/contents/{+path}","compare_url":"https://api.github.com/repos/bmcfee/librosa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bmcfee/librosa/merges","archive_url":"https://api.github.com/repos/bmcfee/librosa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bmcfee/librosa/downloads","issues_url":"https://api.github.com/repos/bmcfee/librosa/issues{/number}","pulls_url":"https://api.github.com/repos/bmcfee/librosa/pulls{/number}","milestones_url":"https://api.github.com/repos/bmcfee/librosa/milestones{/number}","notifications_url":"https://api.github.com/repos/bmcfee/librosa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bmcfee/librosa/labels{/name}","releases_url":"https://api.github.com/repos/bmcfee/librosa/releases{/id}","deployments_url":"https://api.github.com/repos/bmcfee/librosa/deployments","created_at":"2012-10-20T14:21:01Z","updated_at":"2016-02-16T10:58:16Z","pushed_at":"2016-02-17T03:38:16Z","git_url":"git://github.com/bmcfee/librosa.git","ssh_url":"git@github.com:bmcfee/librosa.git","clone_url":"https://github.com/bmcfee/librosa.git","svn_url":"https://github.com/bmcfee/librosa","homepage":"","size":308213,"stargazers_count":459,"watchers_count":459,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":86,"mirror_url":null,"open_issues_count":33,"forks":86,"open_issues":33,"watchers":459,"default_branch":"master"}},"base":{"label":"bmcfee:master","ref":"master","sha":"ce00692233bf0d7d4f57a1075cf6e043d79f92b8","user":{"login":"bmcfee","id":1190540,"avatar_url":"https://avatars.githubusercontent.com/u/1190540?v=3","gravatar_id":"","url":"https://api.github.com/users/bmcfee","html_url":"https://github.com/bmcfee","followers_url":"https://api.github.com/users/bmcfee/followers","following_url":"https://api.github.com/users/bmcfee/following{/other_user}","gists_url":"https://api.github.com/users/bmcfee/gists{/gist_id}","starred_url":"https://api.github.com/users/bmcfee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmcfee/subscriptions","organizations_url":"https://api.github.com/users/bmcfee/orgs","repos_url":"https://api.github.com/users/bmcfee/repos","events_url":"https://api.github.com/users/bmcfee/events{/privacy}","received_events_url":"https://api.github.com/users/bmcfee/received_events","type":"User","site_admin":false},"repo":{"id":6309729,"name":"librosa","full_name":"bmcfee/librosa","owner":{"login":"bmcfee","id":1190540,"avatar_url":"https://avatars.githubusercontent.com/u/1190540?v=3","gravatar_id":"","url":"https://api.github.com/users/bmcfee","html_url":"https://github.com/bmcfee","followers_url":"https://api.github.com/users/bmcfee/followers","following_url":"https://api.github.com/users/bmcfee/following{/other_user}","gists_url":"https://api.github.com/users/bmcfee/gists{/gist_id}","starred_url":"https://api.github.com/users/bmcfee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmcfee/subscriptions","organizations_url":"https://api.github.com/users/bmcfee/orgs","repos_url":"https://api.github.com/users/bmcfee/repos","events_url":"https://api.github.com/users/bmcfee/events{/privacy}","received_events_url":"https://api.github.com/users/bmcfee/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bmcfee/librosa","description":"Python library for audio and music analysis","fork":false,"url":"https://api.github.com/repos/bmcfee/librosa","forks_url":"https://api.github.com/repos/bmcfee/librosa/forks","keys_url":"https://api.github.com/repos/bmcfee/librosa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bmcfee/librosa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bmcfee/librosa/teams","hooks_url":"https://api.github.com/repos/bmcfee/librosa/hooks","issue_events_url":"https://api.github.com/repos/bmcfee/librosa/issues/events{/number}","events_url":"https://api.github.com/repos/bmcfee/librosa/events","assignees_url":"https://api.github.com/repos/bmcfee/librosa/assignees{/user}","branches_url":"https://api.github.com/repos/bmcfee/librosa/branches{/branch}","tags_url":"https://api.github.com/repos/bmcfee/librosa/tags","blobs_url":"https://api.github.com/repos/bmcfee/librosa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bmcfee/librosa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bmcfee/librosa/git/refs{/sha}","trees_url":"https://api.github.com/repos/bmcfee/librosa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bmcfee/librosa/statuses/{sha}","languages_url":"https://api.github.com/repos/bmcfee/librosa/languages","stargazers_url":"https://api.github.com/repos/bmcfee/librosa/stargazers","contributors_url":"https://api.github.com/repos/bmcfee/librosa/contributors","subscribers_url":"https://api.github.com/repos/bmcfee/librosa/subscribers","subscription_url":"https://api.github.com/repos/bmcfee/librosa/subscription","commits_url":"https://api.github.com/repos/bmcfee/librosa/commits{/sha}","git_commits_url":"https://api.github.com/repos/bmcfee/librosa/git/commits{/sha}","comments_url":"https://api.github.com/repos/bmcfee/librosa/comments{/number}","issue_comment_url":"https://api.github.com/repos/bmcfee/librosa/issues/comments{/number}","contents_url":"https://api.github.com/repos/bmcfee/librosa/contents/{+path}","compare_url":"https://api.github.com/repos/bmcfee/librosa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bmcfee/librosa/merges","archive_url":"https://api.github.com/repos/bmcfee/librosa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bmcfee/librosa/downloads","issues_url":"https://api.github.com/repos/bmcfee/librosa/issues{/number}","pulls_url":"https://api.github.com/repos/bmcfee/librosa/pulls{/number}","milestones_url":"https://api.github.com/repos/bmcfee/librosa/milestones{/number}","notifications_url":"https://api.github.com/repos/bmcfee/librosa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bmcfee/librosa/labels{/name}","releases_url":"https://api.github.com/repos/bmcfee/librosa/releases{/id}","deployments_url":"https://api.github.com/repos/bmcfee/librosa/deployments","created_at":"2012-10-20T14:21:01Z","updated_at":"2016-02-16T10:58:16Z","pushed_at":"2016-02-17T03:38:16Z","git_url":"git://github.com/bmcfee/librosa.git","ssh_url":"git@github.com:bmcfee/librosa.git","clone_url":"https://github.com/bmcfee/librosa.git","svn_url":"https://github.com/bmcfee/librosa","homepage":"","size":308213,"stargazers_count":459,"watchers_count":459,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":86,"mirror_url":null,"open_issues_count":33,"forks":86,"open_issues":33,"watchers":459,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bmcfee/librosa/pulls/306"},"html":{"href":"https://github.com/bmcfee/librosa/pull/306"},"issue":{"href":"https://api.github.com/repos/bmcfee/librosa/issues/306"},"comments":{"href":"https://api.github.com/repos/bmcfee/librosa/issues/306/comments"},"review_comments":{"href":"https://api.github.com/repos/bmcfee/librosa/pulls/306/comments"},"review_comment":{"href":"https://api.github.com/repos/bmcfee/librosa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bmcfee/librosa/pulls/306/commits"},"statuses":{"href":"https://api.github.com/repos/bmcfee/librosa/statuses/28a0e63b965ef6038b2570c7c7c2299f1b97443d"}}}}