{"action":"created","issue":{"url":"https://api.github.com/repos/WebAudio/web-audio-api/issues/803","repository_url":"https://api.github.com/repos/WebAudio/web-audio-api","labels_url":"https://api.github.com/repos/WebAudio/web-audio-api/issues/803/labels{/name}","comments_url":"https://api.github.com/repos/WebAudio/web-audio-api/issues/803/comments","events_url":"https://api.github.com/repos/WebAudio/web-audio-api/issues/803/events","html_url":"https://github.com/WebAudio/web-audio-api/issues/803","id":153718584,"number":803,"title":"equal loudness filter","user":{"login":"kevinbarabash","id":1044413,"avatar_url":"https://avatars.githubusercontent.com/u/1044413?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinbarabash","html_url":"https://github.com/kevinbarabash","followers_url":"https://api.github.com/users/kevinbarabash/followers","following_url":"https://api.github.com/users/kevinbarabash/following{/other_user}","gists_url":"https://api.github.com/users/kevinbarabash/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinbarabash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinbarabash/subscriptions","organizations_url":"https://api.github.com/users/kevinbarabash/orgs","repos_url":"https://api.github.com/users/kevinbarabash/repos","events_url":"https://api.github.com/users/kevinbarabash/events{/privacy}","received_events_url":"https://api.github.com/users/kevinbarabash/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/WebAudio/web-audio-api/labels/Feature%20Request/Missing%20Feature","name":"Feature Request/Missing Feature","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-09T07:34:16Z","updated_at":"2016-05-11T02:36:29Z","closed_at":"2016-05-10T20:45:25Z","body":"I'm trying to correct for the fact that the human ear is less sensitive to low and high frequencies.  I started by manually adjusting the gain on OscillatorNodes of different frequencies using data from https://plot.ly/~mrlyule/16/equal-loudness-contours-iso-226-2003/.  This worked reasonably well for sine waves.  The other wave types generated by the oscillator node are comprised of many different frequencies so I doubt this will work as well on them.  Also, this approach won't work well for vibrato effects.\r\n\r\nI was going to try to combine multiple BiquadFilterNodes together in an attempt to approximate the correct frequency response curve, but it seems like it's going to be difficult.  I guess I can get the frequency response for each filter node and add them together to get the overall cover and adjust the settings until it matches the desired curve.\r\n\r\nIt would be nice if there was node that did this kind of equalization."},"comment":{"url":"https://api.github.com/repos/WebAudio/web-audio-api/issues/comments/218346967","html_url":"https://github.com/WebAudio/web-audio-api/issues/803#issuecomment-218346967","issue_url":"https://api.github.com/repos/WebAudio/web-audio-api/issues/803","id":218346967,"user":{"login":"rtoy","id":663356,"avatar_url":"https://avatars.githubusercontent.com/u/663356?v=3","gravatar_id":"","url":"https://api.github.com/users/rtoy","html_url":"https://github.com/rtoy","followers_url":"https://api.github.com/users/rtoy/followers","following_url":"https://api.github.com/users/rtoy/following{/other_user}","gists_url":"https://api.github.com/users/rtoy/gists{/gist_id}","starred_url":"https://api.github.com/users/rtoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtoy/subscriptions","organizations_url":"https://api.github.com/users/rtoy/orgs","repos_url":"https://api.github.com/users/rtoy/repos","events_url":"https://api.github.com/users/rtoy/events{/privacy}","received_events_url":"https://api.github.com/users/rtoy/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T02:36:28Z","updated_at":"2016-05-11T02:36:28Z","body":"The IIRFilterNode is relatively new.  I think only Chrome has it right now,\nbut I expect other browsers to have it pretty quickly.\n\nAs for a ConvolverNode for filtering, you use an FIR design method to get\nthe FIR filter coefficients for your filter.  This is the impulse response\nyou want to use for the ConvolverNode.  But be sure to turn off the\nnormalization of the ConvolverNode.  If you don't the output will be scaled\nin some (constant) way that you probably don't want.\n\nOn Tue, May 10, 2016 at 1:45 PM, Kevin Barabash <notifications@github.com>\nwrote:\n\n> I didn't realize that there was an IIRFilterNode. I'll have to play around\n> with it and ConvolverNode. I guess I'll have to do some research to see how\n> convolution can be used to build filters. I guess if all of these building\n> blocks can be used to build such a filter than it probably doesn't belong\n> in the spec. Thanks for pointing me in the right direction.\n>\n> —\n> You are receiving this because you commented.\n> Reply to this email directly or view it on GitHub\n> <https://github.com/WebAudio/web-audio-api/issues/803#issuecomment-218285641>\n>\n\n\n\n-- \nRay\n"}}