2026年11月20日金曜日

Roblox Studio(ローカルOllamaから操作)

ローカルAI(Ollama)を使って、Roblox Studioの新規作成したテストワールドに
ブロックを5個追加してもらいました。


2026年11月18日水曜日

Audio Plugin Coder (APC)のAPC Hubでエラー

Audio Plugin Coder (APC) GithubサイトのREADMEにある「APC Hub」で起動時にエラー
「https://github.com/Noizefield/audio-plugin-coder」

APC Hub
The APC Hub gives you a complete, live overview of the framework and your plugins - no build required, read-only by default:

node hub/server.js --port 4872 # or: /apc-hub in your agent

~/audio-plugin-coder$ node hub/server.js --port 4872

+--------------------+
| APC/HUB_ |
| hub server 1.0.4 |
+--------------------+

-> http://localhost:4872/
repo: /home/alfaalfa/audio-plugin-coder

node:events:505
throw er; // Unhandled 'error' event
^

Error: spawn xdg-open ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:315:19)
at onErrorNT (node:internal/child_process:553:16)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
Emitted 'error' event on ChildProcess instance at:
at ChildProcess._handle.onexit (node:internal/child_process:321:12)
at onErrorNT (node:internal/child_process:553:16)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn xdg-open',
path: 'xdg-open',
spawnargs: [ 'http://localhost:4872/' ]
}

Node.js v26.13.1

原因はLinux環境で xdg-open を使用してブラウザを起動しようとしていて、xdg-utils がインストールされていないため ENOENT エラーになってるみたい。
多分、wsl2上のディストリビューションにインストールしたので、ブラウザなんてインストールされてないから...
対応としては「--no-open フラグを使ってブラウザの自動起動を無効にする」のが手っ取り早い感じ。
~/audio-plugin-coder$ node hub/server.js --port 4872 --no-open

+--------------------+
| APC/HUB_ |
| hub server 1.0.4 |
+--------------------+

-> http://localhost:4872/
repo: /home/alfaalfa/audio-plugin-coder

2026年11月17日火曜日

Linux対応のAI駆動型JUCE/VST3開発ツール

「Linux環境で JUCE 8 および VST3 プラグインをAI(Claude CodeやCursorなど)に支援してもらいながら開発する場合、自然言語でプロンプトを入力してC++/CMakeプロジェクトを構築できるツールやフレームワークが存在します。」とのこと。
Audio Plugin Coder (APC)っていうらしい。
さっそくWSL2上にインストール
私は、OpenCodeを使ってるので、OpenCode上で、下記のプロンプトを実行
【プロンプトの例】
~/audio-plugin-coder を解析して、開発環境として問題が無いか教えてください。

色々調べてくれて、下記のように回答があった。
とりあえず、環境的にはいけそうっぽい。

2026年11月16日月曜日

MPC Plugin SDKでAIエージェントにプラグイン作成の依頼

AIエージェントに「モノフォニック・アシッドベース・シンセサイザーを作成する:ノコギリ波/矩形波発振器、エンベロープとアクセントを備えたレゾナント・ローパスフィルター、グライド、ドライブステージ、および8つのプリセット。」と依頼

何度かやりとりを繰り返し、途中でコンテキストオーバーしたら、再依頼して、何とか下記のような報告が出力された。

これ、ホントに動作するの?
2026/11/17:追記
ちゃんと、実機(Ableton Live II)で動作しました。

MPC Plugin SDKでAIエージェントにSDKのインストール状況を確認してもらった。

$ cd mpc-plugin-sdk してAIエージェントに「@AGENTS.md を確認して、mpc sdkが使える状態かを確認してください。」 と指示
AIエージェントは「はい、MPC SDKの状態を確認します。主要なファイルとツールが揃っているかチェックします。」
と答えた後に下記の内容を表示した。

mpc-plugin-builder-sdk(その2)

※ここから先の文章は私の個人的なメモです、インストールマニュアルではありません。 ※ご参考にされるのは構いませんが、インストールは自己責任でお願いします。 ※これにより不具合が発生した場合の責任は一切取りません。
昨日のプラグインをビルド後のメッセージに下記のように出力されてた。
Next:
* Make a zip for sharing: python tools/package.py examples/StereoDelay
* Or copy the output folder into a folder named "VST2 Plugins" on your MPC's drive (see INSTALL.txt in the zip).

なので、いったん「* Or copy the output folder into a folder named "VST2 Plugins" on your MPC's drive」
の指示に従って、USBメモリにコピー
USBメモリのトップに「VST2 Plugins」フォルダが確認出来ると思う。
次にその配下に「MPC SDK Examples - VST - Stereo Delay」があるのが確認出来る。

でも、MPC Live II本体では、プラグインフォルダを認識できず。
本体のバージョンは下記のように「3.10.1」で最新版です。
Preferences->ENHANCEMENTSの設定も「ENABLE ENHANCEMENTS」と「EXTERNAL PLUGIN SUPPORT」にチェック入れてるし。

本体を再起動したりしたけど、状況は変化なし。
まぁ、気長にやってみます。
追記
出た!
「3. The plugin now appears in the plugin browser under "External Plugins".
Add it as an insert effect on a track, program, pad or mixer channel.」
上記のメッセージを見逃してました。
通常のプラグインではなく、インサート エフェクトの方で認識されてました。

2026年11月15日日曜日

mpc-plugin-builder-sdk(その1)

※ここから先の文章は私の個人的なメモです、インストールマニュアルではありません。
※ご参考にされるのは構いませんが、インストールは自己責任でお願いします。
※これにより不具合が発生した場合の責任は一切取りません。

1.SDKを入手
$ git clone https://github.com/inmusic-software/mpc-plugin-builder-sdk.git
$ cd mpc-plugin-builder-sdk/
~/workspace/mpc-plugin-builder-sdk$ ll
total 92
drwxr-xr-x 14 4096 Nov 15 17:28 ./
drwxr-xr-x 5 4096 Nov 15 17:28 ../
drwxr-xr-x 3 4096 Nov 15 17:28 .agents/
drwxr-xr-x 3 4096 Nov 15 17:28 .claude/
drwxr-xr-x 7 4096 Nov 15 17:28 .git/
drwxr-xr-x 3 4096 Nov 15 17:28 .github/
-rw-r--r-- 1 315 Nov 15 17:28 .gitignore
-rw-r--r-- 1 6987 Nov 15 17:28 AGENTS.md
-rw-r--r-- 1 151 Nov 15 17:28 CLAUDE.md
-rw-r--r-- 1 1226 Nov 15 17:28 CONTRIBUTING.md
-rw-r--r-- 1 3408 Nov 15 17:28 GETTING_STARTED.md
-rw-r--r-- 1 1258 Nov 15 17:28 LICENSE
-rw-r--r-- 1 6266 Nov 15 17:28 README.md
drwxr-xr-x 2 4096 Nov 15 17:28 docs/
drwxr-xr-x 5 4096 Nov 15 17:28 examples/
drwxr-xr-x 3 4096 Nov 15 17:28 framework/
drwxr-xr-x 2 4096 Nov 15 17:28 plugins/
drwxr-xr-x 2 4096 Nov 15 17:28 schemas/
drwxr-xr-x 4 4096 Nov 15 17:28 templates/
drwxr-xr-x 4 4096 Nov 15 17:28 tools/
drwxr-xr-x 3 4096 Nov 15 17:28 ui-kit/

「README.md」を参照

2.サンプルがビルドされることを確認
$ python tools/build.py examples/StereoDelay
自分の環境では、下記のように「python」を「python3」に置き換えて実行
$ python3 tools/build.py examples/StereoDelay 色々エラーが出力されたが、
下記のエラーメッセージの内の 「* download zig from https://ziglang.org/download/ and put it on your PATH (or use --zig /zig)」部分が
自分の環境ではよさそうだったので、zigをインストール
エラーメッセージの一部
ここから~
ERROR:
pip install ziglang failed. How to get zig (any ONE of these): * pip install ziglang
then: build.py --zig (or set ZIG=)
* download zig from https://ziglang.org/download/ and put it on your PATH (or use --zig /zig) *
macOS: brew install zig
Linux: snap install zig --classic --beta
Windows: winget install zig.zig * or use --toolchain gcc (needs arm-linux-gnueabihf-g++ and aarch64-linux-gnu-g++) or --toolchain docker
~ここまで
~$ tar -xf zig-x86_64-linux-0.17.1.tar.xz
「.bashrc」に下記を追記。再起動
「export PATH="~/zig-x86_64-linux-0.17.1:$PATH"」

「--zig ~/zig-x86_64-linux-0.17.1/zig」のオプションを追加して、再度実行
$ python3 tools/build.py --zig ~/zig-x86_64-linux-0.17.1/zig examples/StereoDelay
Building Stereo Delay by MPC SDK Examples (/home//workspace/mpc-plugin-builder-sdk/examples/StereoDelay)
toolchain: zig target: all release
Using zig 0.17.1 (from --zig)

[1/7] Native build (for host_sim and testing on this computer)
[native] compiling 1 source file -> build/native/stereo-delay.so
[native] ok (2.4 MB, 8.6s)

[2/7] Parameter dump (host_sim) -> build/params.json
building host_sim (first use) -> /home//workspace/mpc-plugin-builder-sdk/.sdk-tools/host_sim
host_sim dump -> build/params.json

[3/7] arm32 build (MPC Live/X/One (32-bit))
[arm32] compiling 1 source file -> build/MPC SDK Examples - VST - Stereo Delay/VST/stereo-delay-arm32.so
[arm32] ok (187 KB, 6.5s)

[4/7] arm64 build (MPC Live II/One+/Key 61/X SE/3 (64-bit))
[arm64] compiling 1 source file -> build/MPC SDK Examples - VST - Stereo Delay/VST/stereo-delay-arm64.so
[arm64] ok (240 KB, 7.7s)

[5/7] Assemble output folder: build/MPC SDK Examples - VST - Stereo Delay/
copied plugin.json
gen_ui.py (ui.json) -> Plugin Skins/

[6/7] version.xml
version 1.0.0.0, uiversion 0.1.0.0

[7/7] Validate
Validating /home//workspace/mpc-plugin-builder-sdk/examples/StereoDelay/build/MPC SDK Examples - VST - Stereo Delay
OK plugin.json: Stereo Delay by MPC SDK Examples (effect, uid MxSd)
OK folder name "MPC SDK Examples - VST - Stereo Delay"
OK file32: stereo-delay-arm32.so is a 32-bit ARM shared object
OK file32: needed libraries: libm.so.6, libc.so.6, ld-linux-armhf.so.3, libdl.so.2
OK file32: max GLIBC requirement 2.27
OK file32: exports VSTPluginMain
OK file64: stereo-delay-arm64.so is a 64-bit AArch64 shared object
OK file64: needed libraries: libm.so.6, libc.so.6, libpthread.so.0, libdl.so.2
OK file64: max GLIBC requirement 2.27
OK file64: exports VSTPluginMain
OK uid matches the binary (MxSd)
OK name matches the binary (Stereo Delay)
OK manufacturer matches the binary (MPC SDK Examples)
OK kind matches the binary (effect)
OK numInputs matches the binary (2)
OK numOutputs matches the binary (2)
OK TUI.json: all parameter handles are within 0..7
OK TUI.json: image fader_h_uni.png present
OK TUI.json: image knob_uni.png present
OK TUI.json: image toggle_off.png present
OK TUI.json: image toggle_on.png present
OK TUI.json: 1 tab
OK Q-Links.json: 1 tab map, all values in range
OK version.xml uiversion 0.1.0.0
0 errors, 0 warnings

========================================================================
Build finished: MPC SDK Examples - VST - Stereo Delay
Output folder: /home//workspace/mpc-plugin-builder-sdk/examples/StereoDelay/build/MPC SDK Examples - VST - Stereo Delay
plugin.json 406 B
version.xml 152 B
Plugin Skins/Q-Links.json 1 KB
Plugin Skins/TUI.json 56 KB
Plugin Skins/fader_h_uni.png 98 KB
Plugin Skins/knob_uni.png 80 KB
Plugin Skins/toggle_off.png 1 KB
Plugin Skins/toggle_on.png 1 KB
VST/stereo-delay-arm32.so 187 KB
VST/stereo-delay-arm64.so 240 KB
Native test build: /home//workspace/mpc-plugin-builder-sdk/examples/StereoDelay/build/native/stereo-delay.so

Next:
* Make a zip for sharing: python tools/package.py examples/StereoDelay
* Or copy the output folder into a folder named "VST2 Plugins" on your MPC's drive (see INSTALL.txt in the zip).

ここから、MPC Live II本体で動作確認する手順が上手く行かない。(よくわかんない)
# 3. Try an example on the MPC

1. Copy that folder into a folder called `VST2 Plugins` at the root of your USB stick or SD card (create it if it is not there).
2. Put the drive in the MPC.
3. Enable external plugins on the device: Preferences → Enhancements (Beta) → turn on **Enable Enhancements** and **External Plugin Support**.
This switch only exists on MPC OS 3.10.1 and later; update the MPC first if you do not see it.
Read the warning: third-party plugins can crash the MPC; save often.
4. Add an insert effect to a track; the browser lists **External Plugins → Stereo Delay**.
Play something. Press the function keys to switch pages; touch a control to grab the knobs.