{"id":2691,"date":"2011-03-11T14:49:32","date_gmt":"2011-03-11T14:49:32","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/2011\/03\/11\/super-mario-song\/"},"modified":"2011-03-11T14:49:32","modified_gmt":"2011-03-11T14:49:32","slug":"super-mario-song","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2011\/03\/11\/super-mario-song\/","title":{"rendered":"Super Mario Song!!"},"content":{"rendered":"<div xmlns:mwsh=\"https:\/\/www.mathworks.com\/namespace\/mcode\/v1\/syntaxhighlight.dtd\" class=\"content\">\r\n   <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\/8442-theme-from-super-mario-brothers-song\">Super Mario Song<\/a> by <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/19914\">James Humes<\/a>.\r\n   <\/p>\r\n   <p>This week, I'm going to cheat a little bit. I'm going to borrow an idea from the MATLAB Central community. If you have been\r\n      following <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/answers\/\">MATLAB Answers<\/a>, you may have noticed a recent question titled <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/answers\/2813-best-file-exchange-ever\">\"Best File Exchange ever!!!\"<\/a>. People have been voicing their favorite File Exchange entries with short blurbs about why they think they're good. It's\r\n      very interesting to hear which files people are using, and that page certainly has a very high concentration of top-quality\r\n      entries.\r\n   <\/p>\r\n   <p>Many of them have already been chosen as the Pick of the Week, but not this one. I must say that I actually noticed this fun\r\n      entry several years ago when I was in graduate school. I remember browsing through the File Exchange one day, and when I found\r\n      this file, I was so tickled to death that I \"played\" it over and over again. That's right, you can <i>play<\/i> this one. It may bring back fond memories to some of you. I really like how he implemented the score by creating an array\r\n      of notes along with an array of durations.\r\n   <\/p>\r\n   <p><b>Comments<\/b><\/p>\r\n   <p>Let us know what you think <a href=\"https:\/\/blogs.mathworks.com\/pick\/?p=2691#respond\">here<\/a> or leave a <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/8442-theme-from-super-mario-brothers-song#comments\">comment<\/a> for James.\r\n   <\/p><script language=\"JavaScript\">\r\n<!--\r\n\r\n    function grabCode_4d8453b95f834d5a8f82bff294e368e9() {\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='4d8453b95f834d5a8f82bff294e368e9 ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' 4d8453b95f834d5a8f82bff294e368e9';\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        author = 'Jiro Doke';\r\n        copyright = 'Copyright 2011 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 author and copyright lines at the bottom if specified.\r\n        if ((author.length > 0) || (copyright.length > 0)) {\r\n            d.writeln('');\r\n            d.writeln('%%');\r\n            if (author.length > 0) {\r\n                d.writeln('% _' + author + '_');\r\n            }\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      \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_4d8453b95f834d5a8f82bff294e368e9()\"><span style=\"font-size: x-small;        font-style: italic;\">Get \r\n            the MATLAB code \r\n            <noscript>(requires JavaScript)<\/noscript><\/span><\/a><br><br>\r\n      Published with MATLAB&reg; 7.11<br><\/p>\r\n<\/div>\r\n<!--\r\n4d8453b95f834d5a8f82bff294e368e9 ##### 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\/8442-theme-from-super-mario-brothers-song\r\n% Super Mario Song> by\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/19914 James\r\n% Humes>.\r\n%\r\n% This week, I'm going to cheat a little bit. I'm going to borrow an idea\r\n% from the MATLAB Central community. If you have been following\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/answers\/ MATLAB Answers>, you may\r\n% have noticed a recent question titled\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/answers\/2813-best-file-exchange-ever\r\n% \"Best File Exchange ever!!!\">. People have been voicing their favorite\r\n% File Exchange entries with short blurbs about why they think they're\r\n% good. It's very interesting to hear which files people are using, and\r\n% that page certainly has a very high concentration of top-quality entries.\r\n%\r\n% Many of them have already been chosen as the Pick of the Week, but not\r\n% this one. I must say that I actually noticed this fun entry several years\r\n% ago when I was in graduate school. I remember browsing through the File\r\n% Exchange one day, and when I found this file, I was so tickled to death\r\n% that I \"played\" it over and over again. That's right, you can _play_ this\r\n% one. It may bring back fond memories to some of you. I really like how he\r\n% implemented the score by creating an array of notes along with an array\r\n% of durations.\r\n% \r\n% *Comments*\r\n%\r\n% Let us know what you think\r\n% <https:\/\/blogs.mathworks.com\/pick\/?p=2691#respond here> or leave a\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/8442-theme-from-super-mario-brothers-song#comments\r\n% comment> for James.\r\n\r\n##### SOURCE END ##### 4d8453b95f834d5a8f82bff294e368e9\r\n-->","protected":false},"excerpt":{"rendered":"<p>\r\n   Jiro's pick this week is Super Mario Song by James Humes.\r\n   \r\n   This week, I'm going to cheat a little bit. I'm going to borrow an idea from the MATLAB Central community. If you have been\r\n  ... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2011\/03\/11\/super-mario-song\/\">read more >><\/a><\/p>","protected":false},"author":35,"featured_media":0,"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\/2691"}],"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=2691"}],"version-history":[{"count":0,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2691\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=2691"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=2691"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=2691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}