{"id":2099,"date":"2019-04-20T16:48:07","date_gmt":"2019-04-20T08:48:07","guid":{"rendered":"http:\/\/www.magicandlove.com\/blog\/?p=2099"},"modified":"2019-04-20T16:54:05","modified_gmt":"2019-04-20T08:54:05","slug":"capture-midi-messages-in-processing-during-playback","status":"publish","type":"post","link":"http:\/\/www.magicandlove.com\/blog\/2019\/04\/20\/capture-midi-messages-in-processing-during-playback\/","title":{"rendered":"Capture midi messages in Processing during playback"},"content":{"rendered":"\n<p>The 2nd midi in Processing example will use the <a rel=\"noreferrer noopener\" aria-label=\"Receiver (opens in a new tab)\" href=\"https:\/\/docs.oracle.com\/javase\/8\/docs\/api\/javax\/sound\/midi\/Receiver.html\" target=\"_blank\">Receiver<\/a> interface to capture all the midi messages during the playback of a midi file. The program uses the custom <em>GetMidi<\/em> class to implement the Receiver interface. During the playback, it will display the <em>NOTE_ON<\/em> message with information of channel, octave and note.<\/p>\n\n\n\n<p>The source code of the example is also in the <a rel=\"noreferrer noopener\" aria-label=\"Magicandlove GitHub repository (opens in a new tab)\" href=\"https:\/\/github.com\/chungbwc\/Magicandlove\/tree\/master\/ml20190419b\" target=\"_blank\">Magicandlove GitHub repository<\/a>. <\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"944\" style=\"aspect-ratio: 1276 \/ 944;\" width=\"1276\" controls src=\"http:\/\/www.magicandlove.com\/blog\/wp-content\/uploads\/2019\/04\/MidiTest.mov\"><\/video><figcaption>Sample Processing screen during midi playback<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The 2nd midi in Processing example will use the Receiver interface to capture all the midi messages during the playback of a midi file. The program uses the custom GetMidi class to implement the Receiver interface. During the playback, it will display the NOTE_ON message with information of channel, octave and note. The source code [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[79,66],"tags":[173,62],"class_list":["post-2099","post","type-post","status-publish","format-standard","hentry","category-software-2","category-testing","tag-midi","tag-processing-org"],"_links":{"self":[{"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/posts\/2099","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/comments?post=2099"}],"version-history":[{"count":2,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/posts\/2099\/revisions"}],"predecessor-version":[{"id":2103,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/posts\/2099\/revisions\/2103"}],"wp:attachment":[{"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/media?parent=2099"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/categories?post=2099"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.magicandlove.com\/blog\/wp-json\/wp\/v2\/tags?post=2099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}