{"id":1155,"date":"2018-02-27T17:26:56","date_gmt":"2018-02-28T01:26:56","guid":{"rendered":"http:\/\/tre.ucsd.edu\/wordpress\/?p=1155"},"modified":"2018-02-28T10:29:43","modified_gmt":"2018-02-28T18:29:43","slug":"mus271a-max-spatialization-1","status":"publish","type":"post","link":"https:\/\/tre.ucsd.edu\/wordpress\/?p=1155","title":{"rendered":"MUS271A (Max w8) \u2013 spatialization 1"},"content":{"rendered":"<p>Here are a few patches that use ILD (inter-aural level difference) and ITD (inter-aural time difference) for more realistic panning. Download here:\u00a0<a href=\"https:\/\/tre.ucsd.edu\/wordpress\/wp-content\/uploads\/2018\/02\/07-ILDpanning.zip\">07-ILDpanning<\/a><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/tre.ucsd.edu\/wordpress\/wp-content\/uploads\/2018\/02\/Screen-Shot-2018-02-27-at-5.21.30-PM.png\"><img loading=\"lazy\" class=\"alignleft wp-image-1156 size-medium\" src=\"https:\/\/tre.ucsd.edu\/wordpress\/wp-content\/uploads\/2018\/02\/Screen-Shot-2018-02-27-at-5.21.30-PM-296x300.png\" alt=\"Screen Shot 2018-02-27 at 5.21.30 PM\" width=\"296\" height=\"300\" srcset=\"https:\/\/tre.ucsd.edu\/wordpress\/wp-content\/uploads\/2018\/02\/Screen-Shot-2018-02-27-at-5.21.30-PM-296x300.png 296w, https:\/\/tre.ucsd.edu\/wordpress\/wp-content\/uploads\/2018\/02\/Screen-Shot-2018-02-27-at-5.21.30-PM.png 638w\" sizes=\"(max-width: 296px) 100vw, 296px\" \/><\/a>1) This patch simply drops the ear most distant from sound\u00a0(contra-lateral) by 12 dB relative to the ear closest to the sound (ipso-lateral). It uses cos and sin to turn azimuth into cartesian coordinates.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p><a href=\"https:\/\/tre.ucsd.edu\/wordpress\/wp-content\/uploads\/2018\/02\/Screen-Shot-2018-02-27-at-5.31.12-PM.png\"><img loading=\"lazy\" class=\"alignleft wp-image-1159 size-medium\" src=\"https:\/\/tre.ucsd.edu\/wordpress\/wp-content\/uploads\/2018\/02\/Screen-Shot-2018-02-27-at-5.31.12-PM-293x300.png\" alt=\"Screen Shot 2018-02-27 at 5.31.12 PM\" width=\"293\" height=\"300\" srcset=\"https:\/\/tre.ucsd.edu\/wordpress\/wp-content\/uploads\/2018\/02\/Screen-Shot-2018-02-27-at-5.31.12-PM-293x300.png 293w, https:\/\/tre.ucsd.edu\/wordpress\/wp-content\/uploads\/2018\/02\/Screen-Shot-2018-02-27-at-5.31.12-PM.png 653w\" sizes=\"(max-width: 293px) 100vw, 293px\" \/><\/a>2) This second patch replaces the simple gain control with 2 cascaded lowpass filters at 1400Hz to simulate the filtering effect of the head on the contra-lateral ear. Your results may vary &#8211; a smaller head would require\u00a0a higher frequency filter.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/tre.ucsd.edu\/wordpress\/wp-content\/uploads\/2018\/02\/Screen-Shot-2018-02-27-at-5.51.30-PM.png\"><img loading=\"lazy\" class=\"alignleft wp-image-1160 size-medium\" src=\"https:\/\/tre.ucsd.edu\/wordpress\/wp-content\/uploads\/2018\/02\/Screen-Shot-2018-02-27-at-5.51.30-PM-290x300.png\" alt=\"Screen Shot 2018-02-27 at 5.51.30 PM\" width=\"290\" height=\"300\" srcset=\"https:\/\/tre.ucsd.edu\/wordpress\/wp-content\/uploads\/2018\/02\/Screen-Shot-2018-02-27-at-5.51.30-PM-290x300.png 290w, https:\/\/tre.ucsd.edu\/wordpress\/wp-content\/uploads\/2018\/02\/Screen-Shot-2018-02-27-at-5.51.30-PM.png 715w\" sizes=\"(max-width: 290px) 100vw, 290px\" \/><\/a>3) With the third panner we add ITD (inter-aural time difference). The difference is set at 1ms when the position is 90 degrees or 270 degrees. No difference when the sound is directly in front (0 degrees) or behind (180 degrees) the listener. Note that a quick change of azimuth can cause doppler effects due to the modulated delay time.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here are a few patches that use ILD (inter-aural level difference) and ITD (inter-aural time difference) for more realistic panning. Download here:\u00a007-ILDpanning &nbsp; 1) This patch simply drops the ear most distant from sound\u00a0(contra-lateral) by 12 dB relative to the &hellip; <a href=\"https:\/\/tre.ucsd.edu\/wordpress\/?p=1155\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[22],"tags":[],"_links":{"self":[{"href":"https:\/\/tre.ucsd.edu\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1155"}],"collection":[{"href":"https:\/\/tre.ucsd.edu\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tre.ucsd.edu\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tre.ucsd.edu\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tre.ucsd.edu\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1155"}],"version-history":[{"count":6,"href":"https:\/\/tre.ucsd.edu\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1155\/revisions"}],"predecessor-version":[{"id":1175,"href":"https:\/\/tre.ucsd.edu\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1155\/revisions\/1175"}],"wp:attachment":[{"href":"https:\/\/tre.ucsd.edu\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tre.ucsd.edu\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tre.ucsd.edu\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}