{"id":497,"date":"2018-07-26T09:27:48","date_gmt":"2018-07-26T01:27:48","guid":{"rendered":"http:\/\/www.tastestars.com\/?p=497"},"modified":"2018-07-26T09:27:48","modified_gmt":"2018-07-26T01:27:48","slug":"1-10","status":"publish","type":"post","link":"https:\/\/tastestars.com\/index.php\/2018\/07\/26\/1-10\/","title":{"rendered":"\u3010MIDI\u3011\u521d\u63a2"},"content":{"rendered":"<p>\u4eca\u5929\uff0c\u82b1\u4e00\u70b9\u65f6\u95f4\u5b66\u4e60MIDI\u7684\u76f8\u5173\u77e5\u8bc6\u3002<\/p>\n<h2>\u4e00\u3001\u7b80\u4ecb<\/h2>\n<p>MIDI\u7684\u5168\u7a0b\u662f\uff1aMusic Instrument Digital Interface\uff0c\u97f3\u4e50\u6570\u5b57\u63a5\u53e3\u3002\u201c\u4e0d\u53d1\u9001\u58f0\u97f3\uff0c\u53ea\u53d1\u9001\u50cf\u662f\u97f3\u8c03\u548c\u97f3\u4e50\u5f3a\u5ea6\u7684\u6570\u636e\uff0c\u97f3\u91cf\uff0c\u98a4\u97f3\u548c\u76f8\u4f4d\u7b49\u53c2\u6570\u7684\u63a7\u5236\u4fe1\u53f7\uff0c\u8fd8\u6709\u8bbe\u7f6e\u8282\u594f\u7684\u65f6\u949f\u4fe1\u53f7\u3002\u201d \uff08\u6765\u81eaWIKI\u767e\u79d1\uff09<\/p>\n<p>\u5728MIR\u4e2d\uff0c\u501f\u52a9MIDI\u51c6\u786e\u7684\u97f3\u9ad8\u3001\u65f6\u95f4\u7b49\u4fe1\u606f\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5206\u6790\u6b4c\u58f0\u68c0\u6d4b\u3001\u97f3\u9ad8\u4f30\u8ba1\u3001\u4e3b\u65cb\u5f8b\u63d0\u53d6\u7b49\u4efb\u52a1\uff0cMIDI\u683c\u5f0f\u7684\u6587\u4ef6\u53ef\u4ee5\u4e3a\u5176\u6253\u4e0a\u51c6\u786e\u7684\u6807\u7b7e\uff0c\u65b9\u4fbf\u7814\u7a76\u3002\u4f46\u4e0d\u662f\u6bcf\u9996\u6b4c\u90fd\u80fd\u8f7b\u8f7b\u677e\u677e\u83b7\u53d6\u5176MIDI\uff0c\u6240\u4ee5\u4f7f\u7528MIDI\u7814\u7a76\u90fd\u662f\u4ee5\u4e0aMIR\u4efb\u52a1\u65e9\u671f\u7684\u65b9\u5f0f\u3002\u968f\u7740\u53d1\u5c55\uff0c\u8981\u6c42\u7b97\u6cd5\u5177\u6709\u9c81\u68d2\u6027\u80fd\u5904\u7406\u97f3\u9891\u6587\u4ef6\u683c\u5f0f(wav\u7b49)\u7684\u97f3\u4e50\uff0c\u4e43\u81f3\u5e26\u7740\u566a\u58f0\u7684\u97f3\u4e50\u3002<\/p>\n<h2>\u4e8c\u3001\u5de5\u5177\u5e93<\/h2>\n<p>\u4e0b\u9762\u4ecb\u7ecd\u4e00\u4e0b\u4e00\u4e9b\u5e2e\u52a9\u64cd\u4f5cMIDI\u7684python\u5e93\u3002<\/p>\n<ol>\n<li>\n<p><strong>Py-MIDI<\/strong><br \/>\n\u652f\u6301python2,3\u3002<br \/>\n\u6709\u86ee\u591a\u7684\u7684\u524d\u7f6e\u5e93\u9700\u8981\u5b89\u88c5\u3002<br \/>\nimport midi<\/p>\n<\/li>\n<li>\n<p><strong>pretty-midi<\/strong><br \/>\n\u652f\u6301python2,3\u3002<br \/>\n\u8c37\u6b4c\u7684Magenta\u9879\u76ee(\u4f7f\u7528\u4eba\u5de5\u667a\u80fd\u8fdb\u884c\u97f3\u4e50\u521b\u4f5c\uff0c2017.6)\u4f7f\u7528\u4e86\u8be5\u5e93\u3002<br \/>\n\u86ee\u591a\u7684\u524d\u7f6e\u5e93\u3002\u9700\u8981FluidSynth<br \/>\nimport pretty_midi<\/p>\n<\/li>\n<li>\n<p><strong>mingus<\/strong><br \/>\n\u8fd9\u662f\u4e00\u4e2a\u8de8\u5e73\u53f0\u7684\u5904\u7406MIDI\u7684python\u5e93\u3002\u9700\u8981FluidSynth\u4f5c\u4e3a\u524d\u7f6e\u5e93\uff0c\u5728win\u4e0a\u5b89\u88c5\u6709\u70b9\u70b9\u9ebb\u70e6\u3002<\/p>\n<\/li>\n<li>\n<p><strong>music21<\/strong><br \/>\n\u8fd9\u662f\u4e00\u4e2apython\u7684\u8ba1\u7b97\u673a\u8f85\u52a9\u97f3\u4e50\u5b66\u5de5\u5177\u5305\uff0c\u91cc\u9762\u6709\u4e9b\u5bf9MIDI\u7684\u64cd\u4f5c\u3002<\/p>\n<\/li>\n<li>\n<p><strong>Mido<\/strong><br \/>\n\u4e13\u95e8\u5904\u7406\u7684MIDI\u7684python\u5e93\uff0c\u4f7f\u7528\u8d77\u6765\u975e\u5e38\u7684Pythonic\u3002\u6211\u86ee\u63a8\u8350\u8fd9\u4e2a\u5e93\u7684\u3002<\/p>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\uff0c\u82b1\u4e00\u70b9\u65f6\u95f4\u5b66\u4e60MIDI\u7684\u76f8\u5173\u77e5\u8bc6\u3002 \u4e00\u3001\u7b80\u4ecb MIDI\u7684\u5168\u7a0b\u662f\uff1aMusic Instrument Dig [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-497","post","type-post","status-publish","format-standard","hentry","category-python"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9Hs6X-81","_links":{"self":[{"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/posts\/497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/comments?post=497"}],"version-history":[{"count":4,"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/posts\/497\/revisions"}],"predecessor-version":[{"id":501,"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/posts\/497\/revisions\/501"}],"wp:attachment":[{"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/media?parent=497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/categories?post=497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/tags?post=497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}