{"id":7868,"date":"2016-09-30T09:00:14","date_gmt":"2016-09-30T13:00:14","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/?p=7868"},"modified":"2016-12-05T00:30:25","modified_gmt":"2016-12-05T05:30:25","slug":"feel-the-music","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2016\/09\/30\/feel-the-music\/","title":{"rendered":"Feel the Music"},"content":{"rendered":"\r\n<div class=\"content\"><p><a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/15007\">Jiro<\/a>'s pick this week is <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/58-routh-m\">Music Visualizer<\/a> by <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/profile\/authors\/5733897\">NathanM<\/a>.<\/p><p>A fun, cool entry for this week. It's like I can <em><b>feel<\/b><\/em> the music!<\/p><div style=\"width: 932px;\" class=\"wp-video\"><!--[if lt IE 9]><script>document.createElement('video');<\/script><![endif]-->\n<video class=\"wp-video-shortcode\" id=\"video-7868-1\" width=\"932\" height=\"676\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/blogs.mathworks.com\/images\/pick\/jiro\/potw_music_visualizer\/forPOTW_music_vis.mp4?_=1\" \/><a href=\"https:\/\/blogs.mathworks.com\/images\/pick\/jiro\/potw_music_visualizer\/forPOTW_music_vis.mp4\">https:\/\/blogs.mathworks.com\/images\/pick\/jiro\/potw_music_visualizer\/forPOTW_music_vis.mp4<\/a><\/video><\/div><p>This application post-processes the audio data, so the first time you select a music file, it takes a while to process. However, it stores the processed information in a MAT file so that it can be loaded the second time. Nathan uses <a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/audioplayer.html\"><tt>audioplayer<\/tt><\/a> to play the music and the Timer functionality of <tt>audioplayer<\/tt> to synchronize the visual with the music.<\/p><p>For people analyzing audio data and developing audio processing algorithms, you may be interested in taking a look at the <a href=\"https:\/\/www.mathworks.com\/products\/audio-system\/\">Audio System Toolbox<\/a>. It provides various \"algorithms and tools for the design, simulation, and desktop prototyping of audio processing systems,\" including streaming analysis of signals.<\/p><p><b>Comments<\/b><\/p><p>Give this a try and let us know what you think <a href=\"https:\/\/blogs.mathworks.com\/pick\/?p=7868#respond\">here<\/a> or leave a <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/58-routh-m#comments\">comment<\/a> for Nathan.<\/p><script language=\"JavaScript\"> <!-- \r\n    function grabCode_7053ebedba9043a4a7cabe90511301d3() {\r\n        \/\/ Remember the title so we can use it in the new page\r\n        title = document.title;\r\n\r\n        \/\/ Break up these strings so that their presence\r\n        \/\/ in the Javascript doesn't mess up the search for\r\n        \/\/ the MATLAB code.\r\n        t1='7053ebedba9043a4a7cabe90511301d3 ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' 7053ebedba9043a4a7cabe90511301d3';\r\n    \r\n        b=document.getElementsByTagName('body')[0];\r\n        i1=b.innerHTML.indexOf(t1)+t1.length;\r\n        i2=b.innerHTML.indexOf(t2);\r\n \r\n        code_string = b.innerHTML.substring(i1, i2);\r\n        code_string = code_string.replace(\/REPLACE_WITH_DASH_DASH\/g,'--');\r\n\r\n        \/\/ Use \/x3C\/g instead of the less-than character to avoid errors \r\n        \/\/ in the XML parser.\r\n        \/\/ Use '\\x26#60;' instead of '<' so that the XML parser\r\n        \/\/ doesn't go ahead and substitute the less-than character. \r\n        code_string = code_string.replace(\/\\x3C\/g, '\\x26#60;');\r\n\r\n        copyright = 'Copyright 2016 The MathWorks, Inc.';\r\n\r\n        w = window.open();\r\n        d = w.document;\r\n        d.write('<pre>\\n');\r\n        d.write(code_string);\r\n\r\n        \/\/ Add copyright line at the bottom if specified.\r\n        if (copyright.length > 0) {\r\n            d.writeln('');\r\n            d.writeln('%%');\r\n            if (copyright.length > 0) {\r\n                d.writeln('% _' + copyright + '_');\r\n            }\r\n        }\r\n\r\n        d.write('<\/pre>\\n');\r\n\r\n        d.title = title + ' (MATLAB code)';\r\n        d.close();\r\n    }   \r\n     --> <\/script><p style=\"text-align: right; font-size: xx-small; font-weight:lighter;   font-style: italic; color: gray\"><br><a href=\"javascript:grabCode_7053ebedba9043a4a7cabe90511301d3()\"><span style=\"font-size: x-small;        font-style: italic;\">Get \r\n      the MATLAB code <noscript>(requires JavaScript)<\/noscript><\/span><\/a><br><br>\r\n      Published with MATLAB&reg; R2016b<br><\/p><p class=\"footer\"><br>\r\n      Published with MATLAB&reg; R2016b<br><\/p><\/div><!--\r\n7053ebedba9043a4a7cabe90511301d3 ##### SOURCE BEGIN #####\r\n%%\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/15007\r\n% Jiro>'s pick this week is\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/58-routh-m Music\r\n% Visualizer> by\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/profile\/authors\/5733897 NathanM>.\r\n%\r\n% A fun, cool entry for this week. It's like I can _*feel*_ the music!\r\n%\r\n% <html>\r\n% [video width=\"932\" height=\"676\" mp4=\"https:\/\/blogs.mathworks.com\/images\/pick\/jiro\/potw_music_visualizer\/forPOTW_music_vis.mp4\"][\/video]\r\n% <\/html>\r\n%\r\n% This application post-processes the audio data, so the first time you\r\n% select a music file, it takes a while to process. However, it stores the\r\n% processed information in a MAT file so that it can be loaded the second\r\n% time. Nathan uses\r\n% <https:\/\/www.mathworks.com\/help\/matlab\/ref\/audioplayer.html\r\n% |audioplayer|> to play the music and the Timer functionality of\r\n% |audioplayer| to synchronize the visual with the music.\r\n%\r\n% For people analyzing audio data and developing audio processing\r\n% algorithms, you may be interested in taking a look at the\r\n% <https:\/\/www.mathworks.com\/products\/audio-system\/ Audio System Toolbox>.\r\n% It provides various \"algorithms and tools for the design, simulation, and\r\n% desktop prototyping of audio processing systems,\" including streaming\r\n% analysis of signals.\r\n%\r\n% *Comments*\r\n%\r\n% Give this a try and let us know what you think\r\n% <https:\/\/blogs.mathworks.com\/pick\/?p=7868#respond here> or leave a\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/58-routh-m#comments\r\n% comment> for Nathan.\r\n\r\n##### SOURCE END ##### 7053ebedba9043a4a7cabe90511301d3\r\n-->","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img src=\"https:\/\/blogs.mathworks.com\/pick\/files\/MusicVisSample.gif\" class=\"img-responsive attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"\" decoding=\"async\" loading=\"lazy\" \/><\/div><p>\r\nJiro's pick this week is Music Visualizer by NathanM.A fun, cool entry for this week. It's like I can feel the... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2016\/09\/30\/feel-the-music\/\">read more >><\/a><\/p>","protected":false},"author":35,"featured_media":8180,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/7868"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=7868"}],"version-history":[{"count":19,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/7868\/revisions"}],"predecessor-version":[{"id":7889,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/7868\/revisions\/7889"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media\/8180"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=7868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=7868"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=7868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}