资源说明:Android MIDI Driver with ADK+MIDI Shield
Android ADK MIDI Driver ==== ADK MIDI Driver using Android Open Accessory - Runs on GingerBread devices. - Supports the lagacy MIDI devices; like sequencers, or instruments. Restriction ---- - Currently, this library can connect only one accessory. Requirement ---- - Android : OS version 2.3.4(API Level 10) or higher. Accssory support by manufacturer also needed. - Arduino compatible ADK board (Accessory Development Kit Board) - Sparkfun's MIDI Shield ( ,or compatible Arduino shield) - MIDI device Device Connection ---- Android [USB B port]------[USB A port] ADK + MIDI Shield [MIDI IN/OUT port] ------ MIDI device Projects ---- - Library Project - ADKMIDIDriver : The driver for connecting a MIDI device with ADK. - Accessory firmware - MIDIAccessoryFirmware : The firmware for ADK board. - Sample Project - ADKMIDIDriverSample : The sample implementation of the synthesizer / MIDI event logger. Library Project Usage ---- Project setup - Clone the library project. - Import the library project into Eclipse workspace, and build it. - Create new Android Project. And add the library project to the project. - Override `jp.kshoji.driver.adkmidi.activity.AbstractMidiActivity`. - Modify the AndroidManifest.xml file's application tag. - Add **uses-library** com.android.future.usb.accessory - Modify the AndroidManifest.xml file's activity tag. - Add **intent-filter** android.hardware.usb.action.USB_ACCESSORY_ATTACHED and **meta-data** to the overridden Activity. - Activity's **launchMode** must be "singleTask". -MIDI event receiving - Implement the MIDI event handling method (named `"onMidi..."`) to receive MIDI events. MIDI event sending - Call AbstractMidiActivity's `getMidiOutputDevice()` method to get the instance on `MIDIOutputDevice`. - And call the instance's method (named `"onMidi..."`) to send MIDI events. License ---- [Apache License, Version 2.0][Apache] [Apache]: http://www.apache.org/licenses/LICENSE-2.0
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。