1<?xml version="1.0" encoding="UTF-8"?> 2<!-- 3 Copyright 2015 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16--> 17<sample> 18 <name>MidiScope</name> 19 <group>Media</group> 20 <package>com.example.android.midiscope</package> 21 <minSdk>23</minSdk> 22 <compileSdkVersion>23</compileSdkVersion> 23 24 <strings> 25 <intro> 26 <![CDATA[ 27This sample demonstrates how to use the MIDI API to receive and process MIDI signals coming from an 28attached input device. 29 ]]> 30 </intro> 31 </strings> 32 33 <common src="midi"/> 34 <template src="base"/> 35 36 <metadata> 37 <status>PUBLISHED</status> 38 <categories>Media</categories> 39 <technologies>Android</technologies> 40 <languages>Java</languages> 41 <solutions>Mobile</solutions> 42 <level>INTERMEDIATE</level> 43 <icon>screenshots/icon-web.png</icon> 44 <screenshots> 45 <img>screenshots/1-main.png</img> 46 <img>screenshots/2-settings.png</img> 47 </screenshots> 48 <api_refs> 49 <android>android.media.midi.MidiManager</android> 50 <android>android.media.midi.MidiReceiver</android> 51 </api_refs> 52 53 <!-- 1-3 line description of the sample here. 54 55 Avoid simply rearranging the sample's title. What does this sample actually 56 accomplish, and how does it do it? --> 57 <description> 58 <![CDATA[ 59Sample demonstrating how to use the MIDI API to receive and process MIDI signals coming from an 60attached device. 61 ]]> 62 </description> 63 64 <!-- Multi-paragraph introduction to sample, from an educational point-of-view. 65 Makrdown formatting allowed. This will be used to generate a mini-article for the 66 sample on DAC. --> 67 <intro> 68 <![CDATA[ 69The Android MIDI API ([android.media.midi][1]) allows developers to connect a MIDI device to Android 70and process MIDI signals coming from it. This sample demonstrates some basic features of the MIDI 71API, such as enumeration of currently available devices (Information includes name, vendor, 72capabilities, etc), notification when MIDI devices are plugged in or unplugged, and receiving MIDI 73signals. This sample simply shows all the received MIDI signals to the screen log and does not play 74any sound for them. 75[1]: https://developer.android.com/reference/android/media/midi/package-summary.html 76 ]]> 77 </intro> 78 </metadata> 79</sample> 80