{"id":2870,"date":"2020-02-11T23:14:12","date_gmt":"2020-02-11T14:14:12","guid":{"rendered":"https:\/\/www.utsbox.com\/?p=2870"},"modified":"2020-07-25T01:19:53","modified_gmt":"2020-07-24T16:19:53","slug":"vst-gui%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%b3%e3%83%b3%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%83%a1%e3%83%8b%e3%83%a5%e3%83%bc%e3%81%ae%e5%ae%9f%e8%a3%85","status":"publish","type":"post","link":"https:\/\/www.utsbox.com\/?p=2870","title":{"rendered":"VST GUI\u306b\u304a\u3051\u308b\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u306e\u5b9f\u88c5"},"content":{"rendered":"<h1>VST GUI\u306b\u304a\u3051\u308b\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u306e\u5b9f\u88c5<\/h1>\n<p>VST GUI\u306b\u304a\u3044\u3066\u53f3\u30af\u30ea\u30c3\u30af\u3067\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u3059\u308b\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.utsbox.com\/wp-content\/uploads\/2020\/02\/20200211.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.utsbox.com\/wp-content\/uploads\/2020\/02\/20200211.gif\" alt=\"\" width=\"400\" height=\"300\" class=\"alignnone size-full wp-image-2869\" \/><\/a><\/p>\n<p>\u306a\u304a\u3001VST GUI\u306e\u57fa\u672c\u7684\u306a\u4f5c\u6210\u65b9\u6cd5\u3068\u3057\u3066\u4e0b\u8a18\u3092\u3054\u7406\u89e3\u3044\u305f\u3060\u3044\u3066\u3044\u308b\u524d\u63d0\u3067\u9032\u3081\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/www.utsbox.com\/?p=1186\">\u6700\u5c0f\u69cb\u6210\u306eVST GUI<\/a><\/li>\n<li><a href=\"https:\/\/www.utsbox.com\/?p=1230\">\u3064\u307e\u307f(\u30ce\u30d6)\u7b49\u306e\u5b9f\u88c5\u65b9\u6cd5<\/a><\/li>\n<\/ul>\n<p>\u307e\u305f\u3001\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u306fCOptionMenu\u30af\u30e9\u30b9\u3092\u4f7f\u7528\u3057\u305f\u308a\u3001valueChanged()\u95a2\u6570\u3067\u30e1\u30cb\u30e5\u30fc\u9805\u76ee\u306e\u9078\u629e\u51e6\u7406\u306a\u3069\u3092\u884c\u3046\u305f\u3081\u3001\u300c<a href=\"https:\/\/www.utsbox.com\/?p=1706\">\u30b3\u30f3\u30dc\u30dc\u30c3\u30af\u30b9\u306e\u5b9f\u88c5<\/a>\u300d\u3084\u300c<a href=\"https:\/\/www.utsbox.com\/?p=1728\">\u8907\u6570\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u540c\u671f<\/a>\u300d\u306b\u3064\u3044\u3066\u3082\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/www.utsbox.com\/?p=1706\">\u30b3\u30f3\u30dc\u30dc\u30c3\u30af\u30b9\u306e\u5b9f\u88c5<\/a><\/li>\n<li><a href=\"https:\/\/www.utsbox.com\/?p=1728\">\u8907\u6570\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u540c\u671f<\/a><\/li>\n<\/ul>\n<p><!--more--><\/p>\n<h2>CView\u30af\u30e9\u30b9\u306e\u4f5c\u6210<\/h2>\n<p>\u307e\u305a\u3001\u30de\u30a6\u30b9\u306e\u53f3\u30af\u30ea\u30c3\u30af\u64cd\u4f5c\u3092\u53d7\u3051\u53d6\u308b\u305f\u3081\u306e\u30af\u30e9\u30b9\u3092CView\u30af\u30e9\u30b9\u3092\u7d99\u627f\u3057\u3066\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\u3053\u306e\u30af\u30e9\u30b9\u306f\u80cc\u666f\u753b\u50cf\u3084\u80cc\u666f\u8272\u3092\u8a2d\u5b9a\u3057\u306a\u3044\u305f\u3081\u898b\u305f\u76ee\u4e0a\u306f\u4f55\u3082\u8868\u793a\u3055\u308c\u306a\u3044\u30d3\u30e5\u30fc(UI)\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3010guieditor.h\u3011<br \/>\n[crayon]<br \/>\nclass CMyView : public CView<br \/>\n{<br \/>\nprotected:<br \/>\n\tCOptionMenu* contextMenu = nullptr;<\/p>\n<p>public:<br \/>\n\t\/\/ \u7b2c1\u5f15\u6570size\u306f\u53f3\u30af\u30ea\u30c3\u30af\u3092\u53d7\u3051\u4ed8\u3051\u308b\u7bc4\u56f2<br \/>\n\t\/\/ \u7b2c2\u5f15\u6570listener\u306f\u64cd\u4f5c\u306e\u51e6\u7406\u3092\u884c\u3046\u30ea\u30b9\u30ca\u30fc<br \/>\n\tCMyView(const CRect&#038; size, IControlListener* listener);<\/p>\n<p>\t~CMyView();<\/p>\n<p>\tCMouseEventResult onMouseDown(CPoint&#038; where, const CButtonState&#038; buttons) SMTG_OVERRIDE;<\/p>\n<p>\tCControl* getContextMenu();<br \/>\n};<br \/>\n[\/crayon]<br \/>\n\u3010guieditor.cpp\u3011<br \/>\n[crayon]<br \/>\nCMyView::CMyView(const CRect&#038; size, IControlListener* listener)<br \/>\n\t: CView(size)<br \/>\n{<br \/>\n\t\/\/ \u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u7528\u306eCOptionMenu\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3059\u308b<br \/>\n\tcontextMenu = new COptionMenu();<\/p>\n<p>\t\/\/ \u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u306b\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u3002<br \/>\n\t\/\/ kPopupStyle\u3068\u3059\u308b\u3053\u3068\u3067\u3001\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u307f\u3068\u306a\u308b\u3002<br \/>\n\t\/\/ (\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30b9\u30bf\u30a4\u30eb\u3067\u306f\u30b3\u30f3\u30dc\u30dc\u30c3\u30af\u30b9\u306e\u3088\u3046\u306a\u5f62\u3068\u306a\u308b\u3002)<br \/>\n\tcontextMenu->setStyle(COptionMenu::kPopupStyle);<\/p>\n<p>\t\/\/ \u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u306b\u30a2\u30a4\u30c6\u30e0(\u9078\u629e\u80a2)\u3092\u8ffd\u52a0\u3059\u308b\u3002<br \/>\n\tcontextMenu->addEntry(&#8220;menu 1&#8221;);<br \/>\n\tcontextMenu->addEntry(&#8220;menu 2&#8221;);<br \/>\n\tcontextMenu->addEntry(&#8220;menu 3&#8221;);<br \/>\n\tcontextMenu->addEntry(&#8220;menu 4&#8221;);<\/p>\n<p>\t\/\/ \u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u304c\u64cd\u4f5c\u3055\u308c\u305f\u3068\u304d\u306e\u30ea\u30b9\u30ca\u30fc\u3092\u30bb\u30c3\u30c8\u3059\u308b\u3002<br \/>\n\t\/\/ VST GUI\u306e\u30af\u30e9\u30b9\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u30a2\u30a4\u30c6\u30e0\u304c\u9078\u3070\u308c\u305f\u3068\u304d\u306bvalueChange()\u95a2\u6570\u304c\u547c\u3070\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u3002<br \/>\n\tcontextMenu->setListener(listener);<\/p>\n<p>\t\/\/ \u4ed6\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u306a\u3044\u3088\u3046\u3001\u900f\u904e\u72b6\u614b\u306b\u3059\u308b\u3002<br \/>\n\tsetTransparency(true);<br \/>\n}<\/p>\n<p>CMyView::~CMyView()<br \/>\n{<br \/>\n\tif (contextMenu != nullptr)<br \/>\n\t\tcontextMenu->forget();<br \/>\n}<\/p>\n<p>CMouseEventResult CMyView::onMouseDown(CPoint&#038; where, const CButtonState&#038; buttons)<br \/>\n{<br \/>\n\t\/\/ \u53f3\u30af\u30ea\u30c3\u30af\u304c\u62bc\u3055\u308c\u305f\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b<br \/>\n\tif (buttons.isRightButton())<br \/>\n\t{<br \/>\n\t\t\/\/ \u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u3092\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u3059\u308b\u3002<br \/>\n\t\tcontextMenu->popup(getFrame(), where);<\/p>\n<p>\t\t\/\/ \u53f3\u30af\u30ea\u30c3\u30af\u306e\u51e6\u7406\u304c\u6b63\u5e38\u7d42\u4e86\u3057\u305f\u306e\u3067\u3001<br \/>\n\t\t\/\/ kMouseDownEventHandledButDontNeedMovedOrUpEvents\u3092\u8fd4\u3059\u3002<br \/>\n\t\treturn kMouseDownEventHandledButDontNeedMovedOrUpEvents;<br \/>\n\t}<\/p>\n<p>\t\/\/ \u53f3\u30af\u30ea\u30c3\u30af\u4ee5\u5916\u306e\u51e6\u7406\u306b\u3064\u3044\u3066\u306f\u3001\u5b9f\u88c5\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001<br \/>\n\t\/\/ kMouseEventNotImplemented\u3092\u8fd4\u3059<br \/>\n\treturn kMouseEventNotImplemented;<br \/>\n}<\/p>\n<p>CControl* CMyView::getContextMenu()<br \/>\n{<br \/>\n\treturn contextMenu;<br \/>\n}<br \/>\n[\/crayon]<\/p>\n<p>CMyView\u30af\u30e9\u30b9\u3067\u306f\u3001\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3067\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u7528\u306eCOptionMenu\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u3053\u3067\u306fCOptionMenu\u30af\u30e9\u30b9\u306e\u8868\u793a\u3092\u3055\u305b\u307e\u305b\u3093\u3002<br \/>\n\u307e\u305f\u3001\u64cd\u4f5c\u3055\u308c\u305f\u3068\u304d\u306b\u547c\u3073\u51fa\u3055\u308c\u308b\u30ea\u30b9\u30ca\u30fc\u3092\u30bb\u30c3\u30c8\u3057\u305f\u308a\u3001\u4ed6\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u306a\u3044\u3088\u3046\u900f\u904e\u72b6\u614b\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u3067\u306f\u3001\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u7528\u306eCOptionMenu\u30af\u30e9\u30b9\u3092forget()\u95a2\u6570\u3067\u89e3\u653e\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>onMouseDown()\u95a2\u6570\u306f\u3001CView\u30af\u30e9\u30b9\u306e\u95a2\u6570\u3092\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3057\u305f\u3082\u306e\u3067\u3001\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u3092\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u3059\u308b\u51e6\u7406\u3092\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30de\u30a6\u30b9\u306e\u30af\u30ea\u30c3\u30af\u304c\u53f3\u30af\u30ea\u30c3\u30af\u304c\u62bc\u3055\u308c\u305f\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u3001\u53f3\u30af\u30ea\u30c3\u30af\u306e\u5834\u5408\u306bCOptionMenu\u30af\u30e9\u30b9\u306epopup()\u95a2\u6570\u3092\u547c\u3073\u51fa\u3057\u3066\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>getContextMenu()\u95a2\u6570\u306f\u4ed6\u306e\u30af\u30e9\u30b9\u306a\u3069\u304c\u30e1\u30f3\u30d0\u30fc\u5909\u6570\u306econtextMenu\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306e\u95a2\u6570\u3067\u3059\u3002<br \/>\n\u5f8c\u8ff0\u3059\u308bvalueChanged()\u95a2\u6570\u306a\u3069\u3067\u4f7f\u3046\u305f\u3081\u306b\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>VST GUI\u3078\u306e\u7d44\u307f\u8fbc\u307f<\/h2>\n<p>CMyView\u30af\u30e9\u30b9\u304c\u5b9f\u88c5\u3067\u304d\u308c\u3070\u3001\u5b9f\u969b\u306bVST GUI\u306b\u7d44\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<p>VST GUI\u30af\u30e9\u30b9\u306eopen()\u95a2\u6570\u5185\u3067CMyView\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\nCMyView\u30af\u30e9\u30b9\u4f5c\u6210\u6642\u306bCMyView\u30af\u30e9\u30b9\u306e\u30dd\u30a4\u30f3\u30bf\u306fvalueChanged()\u95a2\u6570\u306a\u3069\u3067\u4f7f\u7528\u3059\u308b\u305f\u3081\u3042\u3089\u304b\u3058\u3081\u5b9a\u7fa9\u3057\u305f\u30e1\u30f3\u30d0\u30fc\u5909\u6570myView\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<p>\u3010guieditor.h\u3011<br \/>\n[crayon mark=&#8221;4-5&#8243;]<br \/>\nclass MyVSTGUIEditor : public VSTGUIEditor, public IControlListener<br \/>\n{<br \/>\nprotected:<br \/>\n\tCMyView* myView = nullptr;<\/p>\n<p>public:<br \/>\n\t\uff5e\uff5e \u4e2d\u7565 \uff5e\uff5e<br \/>\n}<br \/>\n[\/crayon]<br \/>\n\u3010guieditor.cpp\u3011<br \/>\n[crayon mark=&#8221;10-13&#8243;]<br \/>\nbool PLUGIN_API MyVSTGUIEditor::open(void* parent, const PlatformType&#038; platformType)<br \/>\n{<br \/>\n\t\/\/ GUI\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u958b\u304b\u308c\u305f\u3068\u304d\u306b\u3001UI\u3092\u4f5c\u6210\u3059\u308b<\/p>\n<p>\t\uff5e\uff5e \u4e2d\u7565 \uff5e\uff5e<\/p>\n<p>\t\/\/\u3000&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n\t\/\/ \u3053\u3053\u304b\u3089\u5404\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u4f5c\u6210<\/p>\n<p>\t\/\/ \u7b2c1\u5f15\u6570\u306f\u53f3\u30af\u30ea\u30c3\u30af\u3092\u53d7\u3051\u4ed8\u3051\u308b\u7bc4\u56f2\u306b\u306a\u308b\u306e\u3067frame\u3068\u540c\u3058\u30b5\u30a4\u30ba\u3092\u6307\u5b9a\u3059\u308b<br \/>\n\t\/\/ \u7b2c2\u5f15\u6570\u306fvalueChange()\u95a2\u6570\u304c\u547c\u3070\u308c\u308b\u30ea\u30b9\u30ca\u30fc\u306a\u306e\u3067\u3001VST GUI\u30af\u30e9\u30b9(\u3064\u307e\u308athis)\u3092\u6307\u5b9a\u3059\u308b<br \/>\n\tmyView = new CMyView(size, this);<br \/>\n\tframe->addView(myView);<\/p>\n<p>\t\uff5e\uff5e \u4e2d\u7565 \uff5e\uff5e<\/p>\n<p>\t\/\/ GUI\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30aa\u30fc\u30d7\u30f3\u306b\u6210\u529f\u3057\u305f\u5834\u5408\u306ftrue\u3092\u8fd4\u3059<br \/>\n\treturn true;<br \/>\n}<br \/>\n[\/crayon]<\/p>\n<p>\u4f5c\u6210\u6642\u306e\u6ce8\u610f\u70b9\u3068\u3057\u3066\u3001CMyView\u30af\u30e9\u30b9\u3092\u30d5\u30ec\u30fc\u30e0\u306b\u8ffd\u52a0\u3059\u308b\u9806\u756a(frame->addView()\u3092\u884c\u3046\u9806\u756a)\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\nCMyView\u30af\u30e9\u30b9\u3088\u308a\u3082\u5f8c\u306b\u8ffd\u52a0\u3055\u308c\u305f\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306b\u3064\u3044\u3066\u306f\u3001\u305d\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u4e0a\u3067\u53f3\u30af\u30ea\u30c3\u30af\u3092\u884c\u3063\u3066\u3082\u3001\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u306f\u958b\u304d\u307e\u305b\u3093\u3002<br \/>\n\u9006\u306bCMyView\u30af\u30e9\u30b9\u3088\u308a\u3082\u524d\u306b\u8ffd\u52a0\u3055\u308c\u305f\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3067\u306f\u3001\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u304c\u958b\u304d\u307e\u3059\u304c\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u81ea\u4f53\u306b\u500b\u5225\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u304c\u3042\u308b\u5834\u5408\u306f2\u91cd\u3067\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u958b\u304f\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u64cd\u4f5c\u6642\u306e\u51e6\u7406<\/h2>\n<p>\u3064\u3065\u3044\u3066\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u304c\u64cd\u4f5c\u3055\u308c\u305f\u3068\u304d\u306e\u51e6\u7406\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u306e\u30a2\u30a4\u30c6\u30e0\u304c\u9078\u629e\u3055\u308c\u308b\u3068valueChanged()\u95a2\u6570\u304c\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>[crayon mark=&#8221;5-27&#8243;]<br \/>\nvoid MyVSTGUIEditor::valueChanged(CControl* pControl)<br \/>\n{<br \/>\n\t\uff5e\uff5e \u4e2d\u7565 \uff5e\uff5e<\/p>\n<p>\t\/\/ \u64cd\u4f5c\u3055\u308c\u305f\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u304cCMyView\u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d<br \/>\n\tif (pControl == myView->getContextMenu())<br \/>\n\t{<br \/>\n\t\t\/\/ \u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u3060\u3063\u305f\u306e\u3067\u4f55\u756a\u76ee\u306e\u30a2\u30a4\u30c6\u30e0\u304c\u9078\u629e\u3055\u308c\u305f\u304b\u53d6\u5f97\u3059\u308b\u3002<br \/>\n\t\t\/\/ \u4eca\u56de\u306e\u30b5\u30f3\u30d7\u30eb\u306f4\u3064\u30a2\u30a4\u30c6\u30e0\u3092\u8ffd\u52a0\u3057\u305f\u306e\u3067\u3001\u300c0.0\u30010.333\u2026\u30010,666\u2026\u30011.0\u300d\u306b\u306a\u308b<br \/>\n\t\t\/\/ 3\u500d\u3057\u30660\uff5e3\u306e\u6574\u6570\u5024\u306b\u3057\u3066\u3044\u308b\u3002<br \/>\n\t\tint selected = (int)(pControl->getValueNormalized() * 3);<br \/>\n\t\tswitch (selected)<br \/>\n\t\t{<br \/>\n\t\tcase 0:<br \/>\n\t\t\t\/\/ \u300cmenu 1\u300d\u304c\u9078\u3070\u308c\u305f\u3068\u304d\u306e\u51e6\u7406<br \/>\n\t\t\tbreak;<br \/>\n\t\tcase 1:<br \/>\n\t\t\t\/\/ \u300cmenu 2\u300d\u304c\u9078\u3070\u308c\u305f\u3068\u304d\u306e\u51e6\u7406<br \/>\n\t\t\tbreak;<br \/>\n\t\tcase 2:<br \/>\n\t\t\t\/\/ \u300cmenu 3\u300d\u304c\u9078\u3070\u308c\u305f\u3068\u304d\u306e\u51e6\u7406<br \/>\n\t\t\tbreak;<br \/>\n\t\tcase 3:<br \/>\n\t\t\t\/\/ \u300cmenu 4\u300d\u304c\u9078\u3070\u308c\u305f\u3068\u304d\u306e\u51e6\u7406<br \/>\n\t\t\tbreak;<br \/>\n\t\t}<br \/>\n\t}<br \/>\n}<\/p>\n<p>[\/crayon]<\/p>\n<p>valueChanged()\u95a2\u6570\u3067\u306f\u64cd\u4f5c\u3055\u308c\u305f\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u304cCMyView\u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<br \/>\n\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u3060\u3063\u305f\u5834\u5408\u3001\u3069\u306e\u30a2\u30a4\u30c6\u30e0\u304c\u9078\u629e\u3055\u308c\u305f\u304b\u3092\u53d6\u5f97\u3057\u3001\u30a2\u30a4\u30c6\u30e0\u306b\u5408\u308f\u305b\u3066\u51e6\u7406\u3092\u5b9f\u65bd\u3057\u307e\u3059\u3002<\/p>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>\u4ee5\u4e0a\u3067\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u304c\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u4ee5\u5916\u306b\u3082VST3.6\u306b\u3064\u3044\u3066\u306e\u60c5\u5831\u304c\u3042\u308a\u307e\u3059\u3002\u4e0b\u8a18\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/www.utsbox.com\/?page_id=1316\">\u306f\u3058\u3081\u3066\u306eVST3\u30d7\u30e9\u30b0\u30a4\u30f3\u4f5c\u308a<\/a><\/li>\n<\/ul>\n<p>\u307e\u305f\u3001\u8cea\u554f\u3084\u3054\u6307\u6458\u306f\u30b3\u30e1\u30f3\u30c8\u6b04\u3084<a href=\"https:\/\/jbbs.shitaraba.net\/computer\/42917\/\" title=\"\u63b2\u793a\u677f\" target=\"_blank\" rel=\"noopener noreferrer\">\u63b2\u793a\u677f<\/a>\u3001<a href=\"https:\/\/twitter.com\/vstcpp\">Twitter<\/a>\u3067\u3044\u305f\u3060\u3051\u3070\u3068\u304a\u3082\u3044\u307e\u3059\u3002<\/p>\n<p>\u25a0<a href=\"https:\/\/jbbs.shitaraba.net\/computer\/42917\/\" title=\"\u63b2\u793a\u677f\" target=\"_blank\" rel=\"noopener noreferrer\">\u63b2\u793a\u677f<\/a><br \/>\n\u25a0Twitter\u30a2\u30ab\u30a6\u30f3\u30c8\uff1a@vstcpp\u3000\u3000\u3000URL\uff1a<a href=\"https:\/\/twitter.com\/vstcpp\">https:\/\/twitter.com\/vstcpp<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>VST GUI\u306b\u304a\u3051\u308b\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u306e\u5b9f\u88c5 VST GUI\u306b\u304a\u3044\u3066\u53f3\u30af\u30ea\u30c3\u30af\u3067\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u3059\u308b\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3044\u305f\u3057\u307e\u3059\u3002 \u306a\u304a\u3001VST GUI\u306e\u57fa\u672c\u7684\u306a\u4f5c\u6210\u65b9\u6cd5\u3068\u3057\u3066\u4e0b\u8a18\u3092\u3054\u7406\u89e3\u3044\u305f\u3060\u3044\u3066 [&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":""},"categories":[17],"tags":[],"class_list":["post-2870","post","type-post","status-publish","format-standard","hentry","category-vst3"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p5fXUX-Ki","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/2870","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2870"}],"version-history":[{"count":5,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/2870\/revisions"}],"predecessor-version":[{"id":3712,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/2870\/revisions\/3712"}],"wp:attachment":[{"href":"https:\/\/www.utsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}