2026年11月15日日曜日

mpc-plugin-builder-sdk

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
自分の環境では、下記 $ 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.

MPC OS 3.10.1リリース

Akai Professionalから2026年11月12日(日本時間13日)にMPC OS 3.10.1がリリースされましたね。
さっそく、MPC Live IIをアップデートしました。
Windows11上のMPC3デスクトップアプリもアップデートです。
現在、インターネット上の情報を参考に、お試し中!

今回、私が気になってるのが、「MPC Plugin SDK」です。
これにより、サードパーティー製のプラグイン作成が作成出来ますが、バグが発生するとMPC本体がクラッシュ、フリーズ、再起動したりする可能もあるとのこと。
自由と引き換えに、困難な状況に遭遇しても、自らの力で解決してく感じ?
Ableton Liveのextensions-sdkなんかも同じような感じ?
いろんな先進的なアイデアとかは、一歩枠からはみ出したところで見つかるんですよね。
頑張って、情報収集&トライアンドエラーをしてみます。

2026年11月13日金曜日

Windows11でJUCE

wsl2でのインストールをしたので、今度は、wsl2のホストOS側であるWindowa11上にインストール
JUCEのサイトから「juce-9.0.5-windows.zip」をダウンロードしてきて、
ハードディスク上で解凍
解凍すると「juce-9.0.5-windows」フォルダが出来る
中は?
JUCE-+-.github
_____+-docs
_____+-examples
_____+-extras
_____+-modules
_____|.clang-tidy
_____|.gitignore
_____|AGENTS.md
_____|BREAKING_CHALENGES.md
_____|CHANGE_LIST.md
_____|CLAUDE.md
_____|CMakeLists.txt
_____|CODE_OF_CONDUCT.md
_____|DemoRunner.exe
_____|JUCE.spdx.json
_____|LICENSE.md
_____|Projucer.exe
_____|README.md
_____|SECURITY.md
なんて感じのファイルがある
とりあえず、Projucerを起動して、新規プロジェクト作成して、
Visual Studio2026で開いて、デフォルトでビルドしたら、下記のような画面が起動した

wsl2でVST3・JUCE

wsl2上のLinux環境で Projucer をセルフビルドするには、必要な開発用ライブラリ(依存パッケージ)をインストールした上で、
リポジトリ内の LinuxMakefile または CMake を使用します。とのこと。
1. 依存パッケージのインストール(Ubuntu / Debian系)

公式ドキュメントの Linux Dependencies.md に基づき、コンパイラと必要なライブラリをインストールします。
必要なビルドツールおよび依存パッケージのインストール用コマンドは、GitHub Docs をご参照ください。
↑ここを事前によく確認しとくべきだった。

2. ビルド手順

JUCE公式GitHubリポジトリ をクローンし、以下のいずれかの方法でビルドします。
• 方法A(Makefile): JUCE/extras/Projucer/Builds/LinuxMakefile に移動して make CONFIG=Release -j$(nproc) を実行します。
バイナリは build/Projucer に生成されます。

$ make CONFIG=Release -j$(nproc) を実行
色々足りないエラー続発
なので、足りないものをインストールして、再度ビルド

$ make CONFIG=Release -j$(nproc)
Compiling include_juce_graphics.cpp
Compiling include_juce_graphics_Harfbuzz.cpp
Compiling include_juce_gui_basics.cpp
Compiling include_juce_gui_extra.cpp
Linking Projucer - App

バイナリは build/Projucer に生成されます。
~/JUCE/extras/Projucer/Builds/LinuxMakefile/build$ ./Projucer
無事起動出来ました。

2026年11月12日木曜日

wsl2でArduino Leonardo

2026/11/12:追記
wsl2側でArduinoデバイスを認識しても、arduino-cliコマンドでビルド後のプログラムを
デバイスに書き込む際に、下記のリセット後にどうしてもポートを再認識出来なかったので、
wsl2からの書き込みは断念!
【リセットする理由】
Arduino Leonardo、Micro、SAMD、UNO R4などのネイティブUSB搭載ボードでは、
書き込み前に「1200bpsでシリアルポートを開閉してリセットをかける(1200bps touch)」処理と、
その後のポート再検出待ちが発生します。

他にUbuntuのノートPCが余ってたので、そちらで、Ubuntu直でUSBポートを認識させて
Arduinoデバイスに書き込みするようにしました。

$ ./build_upload.sh
FQBN: arduino:avr:leonardo
Using board 'leonardo' from platform in folder: /home/alfaalfa/.arduino15/packages/arduino/hardware/avr/1.8.8
Using core 'arduino' from platform in folder: /home/alfaalfa/.arduino15/packages/arduino/hardware/avr/1.8.8

Detecting libraries used...
~~途中省略 ~~
AVR device initialized and ready to accept instructions
Device signature = 1E 95 87 (ATmega32U4)
Reading 3956 bytes for flash from input file Blink.ino.hex
in 1 section [0, 0xf73]: 31 pages and 12 pad bytes
Writing 3956 bytes to flash
Writing | ################################################## | 100% 0.31s
3956 bytes of flash written
Avrdude done. Thank you.

Used platform Version Path
arduino:avr 1.8.8 /home/alfaalfa/.arduino15/packages/arduino/hardware/avr/1.8.8

無事書き込み出来て、LEDが点滅しました。

===<以下は旧投稿内容>===============================================
wsl2上で、Arduino Leonardoが認識されてる状態で、arduino-cliを使用して「接続しているボードのFQBN」を確認
$ arduino-cli board list
Port Protocol Type Board Name FQBN Core
/dev/ttyACM0 serial Serial Port (USB) Arduino Leonardo arduino:avr:leonardo arduino:avr

上記で確認出来たボード(FQBN)を使用して詳細を確認
$ arduino-cli board details -b arduino:avr:leonardo
Board name: Arduino Leonardo
FQBN: arduino:avr:leonardo
Board version: 1.8.8

Official Arduino board: ✔

Identification properties: pid=0x0036
vid=0x2341

Identification properties: pid=0x8036
vid=0x2341

Identification properties: pid=0x0036
vid=0x2A03

Identification properties: pid=0x8036
vid=0x2A03

Identification properties: board=leonardo

Package name: arduino
Package maintainer: Arduino
Package URL: https://downloads.arduino.cc/packages/package_index.tar.bz2
Package website: https://www.arduino.cc/
Package online help: https://www.arduino.cc/en/Reference/HomePage

Platform name: Arduino AVR Boards
Platform category: Arduino
Platform architecture: avr
Platform URL: https://downloads.arduino.cc/cores/staging/avr-1.8.8.tar.bz2
Platform file name: avr-1.8.8.tar.bz2
Platform size (bytes): 7162150
Platform checksum: SHA-256:a234c2a43dcd01ce54be665806f183b8e6ec4e966d2e3e0c3358b63023d6390c

Required tool: arduino:arduinoOTA 1.3.0
Required tool: arduino:avr-gcc 7.3.0-atmel3.6.1-arduino7
Required tool: arduino:avrdude 8.0.0-arduino1

Programmers: ID Name
arduinoasisp Arduino as ISP
arduinoasispatmega32u4 Arduino as ISP (ATmega32U4)
arduinoisp ArduinoISP
arduinoisporg ArduinoISP.org
atmel_ice Atmel-ICE (AVR)
avrisp AVR ISP
avrispmkii AVRISP mkII
buspirate BusPirate as ISP
jtag3 Atmel JTAGICE3 (JTAG mode)
jtag3isp Atmel JTAGICE3 (ISP mode)
parallel Parallel Programmer
stk500 Atmel STK500 development board
usbGemma Arduino Gemma
usbasp USBasp
usbtinyisp USBtinyISP

ユーザーのグループ権限不足(Linux / Ubuntu等)に注意!

• 現象: /dev/ttyACM0 にアクセスする権限がなく、ポートを開けずにエラーになっている。
• 対策: ターミナルでユーザーを dialout グループに追加します。bash
sudo usermod -a -G dialout $USER
上記コマンドを実行後は、一度ターミナルを入り直す。

$ cat ./build_upload.sh
#!/bin/bash

# arduino-cli compile [--clean] -b [--upload -p <シリアルポート> [-c オプション]] . [-v]
arduino-cli compile -v -b arduino:avr:leonardo --upload -p /dev/ttyACM0

wsl2上からは書き込みに失敗します。

Arduino LeonardoでもLチカ

こちらは、Windows 11上のArduino IDEで実行してます。
WSL2のarduino-cliコマンドを使用してのビルド後の書き込みでは失敗してます。

ついでに、Arduino LeonardoでもLチカしてみました。
ツール->ボード->Arduino AVR Boards->Arduino Leonardoを選択
ファイル->スケッチ例->01.Basics->Blinkを選択
スケッチはデフォルトの内容のまま
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
PCとUSBに接続して、Arduino Leonardoが認識されていて、割り当てられたCOMポートを確認
ツール->シリアルポートで上記COMポートを選択
念の為、ツール->ボード情報を取得で取得出来ることを確認
BN: Arduino Leonardo
VID: 2341
PID: 0036
SN: (null)
などが表示された。
そして、マイコンボードに書き込んで実行
ボード上にLと印刷されてるオンボードのLEDが点滅
壊れてなかった。

学研 JapaninoでLチカ

久々に、Japanino見つけたので、Arduino IDEでサンプルスケッチ「Blink」を
実行してみました。
まず、ツール->ボード->Arduino AVR Boards->Arduino Pro or Pro Miniを選択
次に、ツール->プロセッサ->ATmega168(3.3v,8MHz)を選択
ファイル->スケッチ例->01.Basics->Blinkを選択
スケッチはデフォルトの内容のまま
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
PCとUSBに接続して、Japaninoが認識されていて、割り当てられたCOMポートを確認
ツール->シリアルポートで上記COMポートを選択
念の為、ツール->ボード情報を取得で取得出来ることを確認
BN: 不明なボード
VID: 10C4
PID: EA60
SN: 取得するには任意のスケッチをアップロードしてください
などが表示された。
そして、マイコンボードに書き込んで実行
POWER LEDの左にあるオンボートのLEDが点滅
壊れてなかった。