2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
CTS 検証ツール MIDI テスト
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
以下のテストでは、電子楽器デジタル インターフェース(MIDI)システムと、関連する C または C++ API(ネイティブ MIDI テストの場合)および Java Language API(JAVA MIDI テストの場合)が想定どおりに機能することを確認します。このテストには次の要件があります。
- 必要な周辺機器: ループバック ケーブルが接続された MIDI 周辺機器
次の図に、ループバック ケーブルが接続された MIDI 周辺機器の例を示します。
図 1. MIDI I/O ポートを備えた USB オーディオ インターフェースの前面
図 2. MIDI I/O ポートを備えた USB オーディオ インターフェースの背面
図 3. 標準 5 ピン DIN MIDI ケーブル
図 4. Bluetooth MIDI インターフェース(Yamaha MD-BT01、Roland WM-1 など)
ループバック テスト
すべてのループバック テストでは、一連の MIDI メッセージをテスト用周辺機器から送信し、そのデータをループバックしてデバイスの入力データをモニターすることで、受信したデータが送信されたデータと一致することを確認します。
以下のテストにすべて合格してから、アプリで合格とマークする必要があります。
USB MIDI ループバック テスト
- USB オーディオ / MIDI インターフェース周辺機器で、標準の 5 ピン DIN MIDI ケーブルを使用して MIDI 入力ポートと MIDI 出力ポートを接続します。
- USB オーディオ / MIDI インターフェース周辺機器を DUT(テスト対象デバイス)に接続します。接続されている周辺機器を DUT が認識すると、テスト画面にデバイス名(入力と出力)が表示され、[Test USB MIDI Interface] ボタンが有効になります。
- [Test USB MIDI Interface] をタップします。
- テストが完了するまで待ってから、テスト画面に報告された結果を確認します。
仮想 MIDI ループバック テスト
このテストに外部ハードウェアは必要ありません。
- [Test Virtual MIDI Interface] をタップします。
- テストが完了するまで待ってから、テスト画面に報告された結果を確認します。
Bluetooth MIDI ループバック テスト
- Play ストアから MIDI BLE Connect アプリをダウンロードしてインストールします。
- USB オーディオ / MIDI インターフェース周辺機器の背面にある MIDI 入力コネクタと出力コネクタに Bluetooth MIDI インターフェースを接続します。Bluetooth MIDI インターフェースのコネクタの向きは決まっています。
- Bluetooth MIDI インターフェースの入力プラグは、USB オーディオ / MIDI インターフェースの入力ジャックに接続する必要があります。
- Bluetooth MIDI インターフェースの出力プラグは、USB オーディオ / MIDI インターフェースの出力ジャックに接続する必要があります。
- USB オーディオ / MIDI インターフェース周辺機器を DUT に接続します。
- MIDI BLE Connect アプリを実行し、USB 周辺機器に接続した Bluetooth MIDI デバイスをスキャンします。この Bluetooth MIDI デバイスを選択してください。
- 接続されている周辺機器を DUT が認識すると、テスト画面にデバイス名(入力と出力)が表示され、[Bluetooth USB MIDI Interface] ボタンが有効になります。
- [Bluetooth USB MIDI Interface] をタップします。
- テストが完了するまで待ってから、テスト画面に報告された結果を確認します。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-05-08 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-05-08 UTC。"],[],[],null,["# CTS Verifier MIDI tests\n\nThe following tests verify that the Musical Instrument Digital Interface (MIDI)\nsystem and the associated C or C++ API (for the Native MIDI Test) and the Java\nlanguage API (for the JAVA MIDI Test) function as expected.\n| **Warning:** This page has separate \"Required peripherals\" and \"Test Bluetooth MIDI loopback\" sections (one section each for Android 16 or higher and Android 15 or lower).\n\nFollow the steps in the section for your specific Android version.\n\nRequired peripherals (Android 16 or higher)\n-------------------------------------------\n\nBefore running the CTS-V MIDI tests, you must have these peripherals:\n\n- A USB MIDI with associated loopback cables, such as [Presonus Audio Box 96](https://www.presonus.com/en-US/interfaces/usb-audio-interfaces/audiobox-series/2777700105.html) with a standard 5-pin DIN MIDI cable\n- A Bluetooth MIDI with associated cables, such as [CME WIDI Jack](https://www.cme-pro.com/product/widi-jack/?srsltid=AfmBOorhxPmDHZbqJBDJ47HcMfoAoKYyDGp2wmtFSz3Fm3qA5DfkLHlw) with a [2.5 mm MIDI TRS cable](https://www.cme-pro.com/product/widi-accessory-25trs25-cable/?srsltid=AfmBOoqXgnzXs3QjWkf8gF-vOWbs00xv33LUlNu4VzDAqxRbzaAJh8S-)\n\nExamples of MIDI peripherals with associated loopback cables are shown in the\nfollowing figures:\n\n**Figure 1.** The front of a USB audio interface with MIDI I/O ports.\n\n**Figure 2.** The back of a USB audio interface with MIDI I/O ports.\n\n**Figure 3.** A standard 5-pin DIN MIDI cable.\n\n**Figure 4.** A Bluetooth MIDI interface with 5-pin DIN.\n\n**Figure 5.** A Bluetooth MIDI interface with loopback.\n\nRequired peripherals (Android 15 or lower)\n------------------------------------------\n\nBefore running the CTS-V MIDI tests, you must have a MIDI peripheral with\nassociated loopback cables. Examples of MIDI peripherals with associated\nloopback cables are shown in the following figures:\n\n**Figure 6.** The front of a USB audio interface with MIDI I/O ports.\n\n**Figure 7.** The back of a USB audio interface with MIDI I/O ports.\n\n**Figure 8.** A standard 5-pin DIN MIDI cable.\n\n**Figure 9.** A Bluetooth MIDI interface, such as a Yamaha MD-BT01 or a Roland WM-1.\n\nLoopback tests\n--------------\n\nAll the loopback tests send a set of MIDI messages out through the test\nperipheral, loop back that data, and then monitor the input of that device to\ncheck that the data received matches the data that was sent.\n\nAll of the following tests must pass before you mark them as passed in the app.\n\n### Test USB MIDI loopback\n\n1. On the USB Audio/MIDI interface peripheral, connect the MIDI input to the MIDI output with a standard, 5-pin DIN MIDI cable.\n2. Connect the USB Audio/MIDI interface peripheral to the device under test DUT. When the DUT recognizes the connected peripheral, the test screen displays the device names (input and output) and makes the **Test USB MIDI Interface** button available.\n3. Tap **Test USB MIDI Interface**.\n4. Wait for the test to complete, then view the reported results on the test screen.\n\n### Test virtual MIDI loopback\n\nNo external hardware is required for this test.\n\n1. Tap **Test Virtual MIDI Interface**.\n2. Wait for the test to complete, then view the reported results on the test screen.\n\nTest Bluetooth MIDI loopback (Android 16 or higher)\n---------------------------------------------------\n\nThe following steps describe how to test Bluetooth MIDI loopback on\nAndroid 16 or higher:\n\n1. Download and install the [MIDI BLE Connect](https://play.google.com/store/apps/details?id=com.mobileer.example.midibtlepairing) app from Google Play.\n2. (optional) If your Bluetooth peripheral supports loopback, for example, the CME WIDI Jack in Figure 5, skip this step. Otherwise, follow these steps:\n 1. On the USB Audio/MIDI interface peripheral, connect the Bluetooth MIDI interface to the MIDI input and output connectors on the back of the USB Audio/MIDI interface. The 5-pin DIN connectors on the Bluetooth MIDI interface have specific directionality:\n - The INPUT plug on the Bluetooth MIDI interface must connect to the INPUT jack on the USB Audio/MIDI interface.\n - The OUTPUT plug on the Bluetooth MIDI interface must connect to the OUTPUT jack on the USB Audio/MIDI interface.\n 2. Connect the USB Audio/MIDI interface peripheral to the DUT.\n3. Run the MIDI BLE Connect app. Scan for the Bluetooth MIDI device. Select this Bluetooth MIDI device.\n4. When the DUT recognizes the connected peripheral, the test screen displays the device names (input and output) and makes the **Test Bluetooth MIDI\n Interface** button available.\n5. Tap **Test Bluetooth MIDI Interface**.\n6. Wait for the test to complete, then view the reported results in the test.\n\nTest Bluetooth MIDI loopback (Android 15 or lower)\n--------------------------------------------------\n\nThe following steps describe how to test Bluetooth MIDI loopback on\nAndroid 15 or lower:\n\n1. Download and install the [MIDI BLE Connect](https://play.google.com/store/apps/details?id=com.mobileer.example.midibtlepairing) app from Google Play.\n2. On the USB Audio/MIDI interface peripheral, connect the Bluetooth MIDI interface to the MIDI input and output connectors on the back of the USB Audio/MIDI interface. The connectors on the Bluetooth MIDI interface have specific directionality:\n - The INPUT plug on the Bluetooth MIDI interface must connect to the INPUT jack on the USB Audio/MIDI interface.\n - The OUTPUT plug on the Bluetooth MIDI interface must connect to the OUTPUT jack on the USB Audio/MIDI interface.\n3. Connect the USB Audio/MIDI interface peripheral to the DUT.\n4. Run the MIDI BLE Connect app. Scan for the Bluetooth MIDI device connected to the USB peripheral. Select this Bluetooth MIDI device.\n5. When the DUT recognizes the connected peripheral, the test screen displays the device names (input and output) and makes the **Bluetooth USB MIDI\n Interface** button available.\n6. Tap **Bluetooth USB MIDI Interface**.\n7. Wait for the test to complete, then view the reported results in the test screen."]]