実現したいこと
USBでつなぐMIDIコンを作りたいです。
発生している問題・分からないこと
主要なMIDIライブラリを試しましたが全滅でした。公式のMIDIUSBですら使えないという有様。
もう発売から3年も経ってるのに、主要モデルなのに、マイコン工作では割と基本的なMIDI通信すら対応してないのでしょうか?
該当のソースコード
#include <MIDIUSB.h> void setup() { // put your setup code here, to run once: } void loop() { // put your main code here, to run repeatedly: }
エラーメッセージ
警告:ライブラリMIDIUSBはアーキテクチャavr, sam, samdに対応したものであり、アーキテクチャrenesas_unoで動作するこのボードとは互換性がないかもしれません。 In file included from /private/var/folders/ll/lm1k_cr51sj38nhkcf04671h0000gn/T/.arduinoIDE-unsaved20261010-13245-16exoa2.ft71/sketch_nov10a/sketch_nov10a.ino:1:0: /Users/xxxx/Documents/Arduino/libraries/MIDIUSB/src/MIDIUSB.h:18:2: error: #error MIDIUSB can only be used with an USB MCU. #error MIDIUSB can only be used with an USB MCU. ^~~~~ In file included from /private/var/folders/ll/lm1k_cr51sj38nhkcf04671h0000gn/T/.arduinoIDE-unsaved20261010-13245-16exoa2.ft71/sketch_nov10a/sketch_nov10a.ino:1:0: /Users/xxxx/Documents/Arduino/libraries/MIDIUSB/src/MIDIUSB.h:78:2: error: #error "Unsupported architecture" #error "Unsupported architecture" ^~~~~ exit status 1 Compilation error: exit status 1
試したこと・調べたこと
- teratailやGoogle等で検索した
- ソースコードを自分なりに変更した
- 知人に聞いた
- その他
上記の詳細・結果
試したライブラリ
・MIDIUSB
・Adafruit_TinyUSB_Arduino
・Arduino-USBMIDI
いずれもプログラムを書く以前に、ヘッダファイルをincludeしただけでエラーを吐く。
補足
特になし