blob: cbc0e54caba4bb519ca2db4f2e2b543b41c391ec [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
Copyright 2015 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.
This sample demonstrates how to use the MIDI API to receive and process MIDI signals coming from an
attached input device.
<common src="midi"/>
<template src="base"/>
<!-- 1-3 line description of the sample here.
Avoid simply rearranging the sample's title. What does this sample actually
accomplish, and how does it do it? -->
Sample demonstrating how to use the MIDI API to receive and process MIDI signals coming from an
attached device.
<!-- Multi-paragraph introduction to sample, from an educational point-of-view.
Makrdown formatting allowed. This will be used to generate a mini-article for the
sample on DAC. -->
The Android MIDI API ([][1]) allows developers to connect a MIDI device to Android
and process MIDI signals coming from it. This sample demonstrates some basic features of the MIDI
API, such as enumeration of currently available devices (Information includes name, vendor,
capabilities, etc), notification when MIDI devices are plugged in or unplugged, and receiving MIDI
signals. This sample simply shows all the received MIDI signals to the screen log and does not play
any sound for them.