{"id":89,"date":"2026-08-27T00:08:13","date_gmt":"2026-08-26T21:08:13","guid":{"rendered":"https:\/\/mzxbox.ru\/?page_id=89"},"modified":"2026-08-27T08:39:22","modified_gmt":"2026-08-27T05:39:22","slug":"performer","status":"publish","type":"page","link":"https:\/\/mzxbox.ru\/?page_id=89","title":{"rendered":"Performer"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Types:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#FFFFFF\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>type MZXBX_AudioPerformerPlugin = {\n\tlaunch: (context: AudioContext, parameters: string) => number;\n\tbusy: () => null | string;\n\tstrum: (when: number, pitches: number[], tempo: number, slides: MZXBX_SlideItem[]) => void;\n\tcancel: () => void;\n\toutput: () => AudioNode | null;\n};\ntype MZXBX_SlideItem = {\n\tduration: number;\n\tdelta: number;\n};\n<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #0000FF\">type<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">MZXBX_AudioPerformerPlugin<\/span><span style=\"color: #000000\"> = {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">\t<\/span><span style=\"color: #795E26\">launch<\/span><span style=\"color: #000000\">: (<\/span><span style=\"color: #001080\">context<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #267F99\">AudioContext<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">parameters<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #267F99\">string<\/span><span style=\"color: #000000\">) <\/span><span style=\"color: #0000FF\">=&gt;<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">number<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">\t<\/span><span style=\"color: #795E26\">busy<\/span><span style=\"color: #000000\">: () <\/span><span style=\"color: #0000FF\">=&gt;<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">null<\/span><span style=\"color: #000000\"> | <\/span><span style=\"color: #267F99\">string<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">\t<\/span><span style=\"color: #795E26\">strum<\/span><span style=\"color: #000000\">: (<\/span><span style=\"color: #001080\">when<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #267F99\">number<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">pitches<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #267F99\">number<\/span><span style=\"color: #000000\">[], <\/span><span style=\"color: #001080\">tempo<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #267F99\">number<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">slides<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #267F99\">MZXBX_SlideItem<\/span><span style=\"color: #000000\">[]) <\/span><span style=\"color: #0000FF\">=&gt;<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">void<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">\t<\/span><span style=\"color: #795E26\">cancel<\/span><span style=\"color: #000000\">: () <\/span><span style=\"color: #0000FF\">=&gt;<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">void<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">\t<\/span><span style=\"color: #795E26\">output<\/span><span style=\"color: #000000\">: () <\/span><span style=\"color: #0000FF\">=&gt;<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">AudioNode<\/span><span style=\"color: #000000\"> | <\/span><span style=\"color: #267F99\">null<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">};<\/span><\/span>\n<span class=\"line\"><span style=\"color: #0000FF\">type<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">MZXBX_SlideItem<\/span><span style=\"color: #000000\"> = {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">\t<\/span><span style=\"color: #001080\">duration<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #267F99\">number<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">\t<\/span><span style=\"color: #001080\">delta<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #267F99\">number<\/span><span style=\"color: #000000\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">};<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Workflow diagram:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"791\" height=\"1024\" src=\"https:\/\/mzxbox.ru\/wp-content\/uploads\/2026\/08\/performerflow-791x1024.jpg\" alt=\"\" class=\"wp-image-118\" srcset=\"https:\/\/mzxbox.ru\/wp-content\/uploads\/2026\/08\/performerflow-791x1024.jpg 791w, https:\/\/mzxbox.ru\/wp-content\/uploads\/2026\/08\/performerflow-232x300.jpg 232w, https:\/\/mzxbox.ru\/wp-content\/uploads\/2026\/08\/performerflow-767x993.jpg 767w, https:\/\/mzxbox.ru\/wp-content\/uploads\/2026\/08\/performerflow.jpg 816w\" sizes=\"auto, (max-width: 791px) 100vw, 791px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Types: Workflow diagram:<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":106,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"mzxbox-template-front","meta":{"footnotes":""},"class_list":["post-89","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mzxbox.ru\/index.php?rest_route=\/wp\/v2\/pages\/89","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mzxbox.ru\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mzxbox.ru\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mzxbox.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mzxbox.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=89"}],"version-history":[{"count":3,"href":"https:\/\/mzxbox.ru\/index.php?rest_route=\/wp\/v2\/pages\/89\/revisions"}],"predecessor-version":[{"id":119,"href":"https:\/\/mzxbox.ru\/index.php?rest_route=\/wp\/v2\/pages\/89\/revisions\/119"}],"up":[{"embeddable":true,"href":"https:\/\/mzxbox.ru\/index.php?rest_route=\/wp\/v2\/pages\/106"}],"wp:attachment":[{"href":"https:\/\/mzxbox.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}