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>MidiSynth</name> 19 <group>Media</group> 20 <package>com.example.android.midisynth</package> 21 22 <minSdk>23</minSdk> 23 <strings> 24 <intro> 25<![CDATA[ 26This sample demonstrates how to use the MIDI API to receive and play MIDI messages coming from an 27attached input device. 28]]> 29 </intro> 30 </strings> 31 32 <common src="midi" /> 33 <template src="base" /> 34 35 <metadata> 36 <status>PUBLISHED</status> 37 <categories>Media</categories> 38 <technologies>Android</technologies> 39 <languages>Java</languages> 40 <solutions>Mobile</solutions> 41 <level>EXPERT</level> 42 <icon>screenshots/icon-web.png</icon> 43 <screenshots> 44 <img>screenshots/1-main.png</img> 45 </screenshots> 46 <api_refs> 47 <android>android.media.midi.MidiManager</android> 48 <android>android.media.midi.MidiReceiver</android> 49 </api_refs> 50 <description> 51<![CDATA[ 52Sample demonstrating how to use the MIDI API to receive and play MIDI messages coming from an 53attached input device (MIDI keyboard). 54]]> 55 </description> 56 57 <!-- Multi-paragraph introduction to sample, from an educational point-of-view. 58 Makrdown formatting allowed. This will be used to generate a mini-article for the 59 sample on DAC. --> 60 <intro> 61<![CDATA[ 62The Android MIDI API ([android.media.midi][1]) allows developers to connect a MIDI device to 63an Android device and process MIDI messages coming from it. 64 65This sample demonstrates some basic features of the MIDI API, such as: 66 67- Enumeration of currently available devices (including name, vendor, capabilities, etc) 68- Notification when MIDI devices are plugged in or unplugged 69- Receiving and processing MIDI messages 70 71This sample contains a simple implementation of an oscillator and note playback. 72 73[1]: https://developer.android.com/reference/android/media/midi/package-summary.html 74]]> 75 </intro> 76 </metadata> 77</sample> 78