{"id":127,"date":"2016-01-30T05:06:13","date_gmt":"2016-01-30T05:06:13","guid":{"rendered":"http:\/\/weegreenblobbie.com\/?p=127"},"modified":"2016-01-30T05:07:07","modified_gmt":"2016-01-30T05:07:07","slug":"nsound-biquad-json","status":"publish","type":"post","link":"http:\/\/weegreenblobbie.com\/?p=127","title":{"rendered":"Nsound + Biquad + JSON"},"content":{"rendered":"<p>I&#8217;ve stared using github to host the nsound source code <a href=\"https:\/\/github.com\/weegreenblobbie\/nsound\">here<\/a>. \u00a0I&#8217;m currently working on porting some of the code in this paper:<\/p>\n<blockquote><p><a href=\"http:\/\/www.ece.rutgers.edu\/~orfanidi\/ece346\/hpeq.pdf\">High-Order Digital Parametric Equalizer Design<\/a><\/p><\/blockquote>\n<p>I&#8217;ve ported most of the MATLAB code to Python and have made some progress on a C++ version <a href=\"https:\/\/github.com\/weegreenblobbie\/nsound\/tree\/feature\/biquad-filters\/src\/Nsound\/biquad\">here<\/a>. \u00a0Here&#8217;s a plot:<\/p>\n<p><a href=\"http:\/\/weegreenblobbie.com\/wp-content\/uploads\/2016\/01\/biquad_1.png\" rel=\"attachment wp-att-128\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-128\" src=\"http:\/\/weegreenblobbie.com\/wp-content\/uploads\/2016\/01\/biquad_1-300x226.png\" alt=\"biquad_1\" width=\"565\" height=\"426\" srcset=\"http:\/\/weegreenblobbie.com\/wp-content\/uploads\/2016\/01\/biquad_1-300x226.png 300w, http:\/\/weegreenblobbie.com\/wp-content\/uploads\/2016\/01\/biquad_1-768x579.png 768w, http:\/\/weegreenblobbie.com\/wp-content\/uploads\/2016\/01\/biquad_1.png 812w\" sizes=\"auto, (max-width: 565px) 100vw, 565px\" \/><\/a><\/p>\n<p>This class will also be able to read\/write JSON strings. \u00a0So one could load any IIR filter designed elsewhere and load it into the Biquad class. \u00a0Here&#8217;s a sample of the JSON for the filter designed above:<\/p>\n<pre class=\"lang:default decode:true \">{\r\n  \"band_width_hz\": 2400,\r\n  \"freq_center_hz\": 5000,\r\n  \"gain_db_at_band_width\": 9,\r\n  \"gain_db_at_fc\": 12,\r\n  \"gain_db_baseline\": 0,\r\n  \"order\": 4,\r\n  \"samplerate\": 48000\r\n}<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve stared using github to host the nsound source code here. \u00a0I&#8217;m currently working on porting some of the code in this paper: High-Order Digital Parametric Equalizer Design I&#8217;ve ported most of the MATLAB code to Python and have made &hellip; <a href=\"http:\/\/weegreenblobbie.com\/?p=127\">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":{"footnotes":""},"categories":[9,3,7],"tags":[13,12],"class_list":["post-127","post","type-post","status-publish","format-standard","hentry","category-computing","category-nsound","category-programming","tag-code","tag-nsound"],"_links":{"self":[{"href":"http:\/\/weegreenblobbie.com\/index.php?rest_route=\/wp\/v2\/posts\/127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/weegreenblobbie.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/weegreenblobbie.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/weegreenblobbie.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/weegreenblobbie.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=127"}],"version-history":[{"count":2,"href":"http:\/\/weegreenblobbie.com\/index.php?rest_route=\/wp\/v2\/posts\/127\/revisions"}],"predecessor-version":[{"id":130,"href":"http:\/\/weegreenblobbie.com\/index.php?rest_route=\/wp\/v2\/posts\/127\/revisions\/130"}],"wp:attachment":[{"href":"http:\/\/weegreenblobbie.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/weegreenblobbie.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=127"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/weegreenblobbie.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}