发送MIDI信息通过USB在Android [英] Send MIDI messages over USB on Android

查看:979
本文介绍了发送MIDI信息通过USB在Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想就在Android其通过USB MIDI消息发送到一台电脑就能控制音乐软件如Cubase,FL,原因,等...

I would like to make an app on android which sends MIDI messages over USB to a computer to be able to control music softwares such as Cubase, FL, Reason, ect...

硬件MIDI控制器(如键盘)在音乐软件自动识别在Windows上。我想这是因为他们使用通用MIDI协议,直接认定的音乐软件。他们不需要自己的驱动程序。

Hardware MIDI controllers (e.g Keyboards) are automatically recognized in music software on Windows. I guess it's because they use the universal MIDI protocol which is directly recognized by the music software. They don't need their own driver.

我希望能够用我的手机/平板电脑作为一个MIDI控制器,​​而无需在计算机上安装的工作人员(如使用硬件控制器)。

I'd like to be able to use my phone/tablet as a midi controller without having to install staff on the computer (like with hardware controllers).

有一个关于Android开发者演示code通过USB来控制导弹发射的玩具。如果我发送,使用相同的技术,按照MIDI协议的消息将它的工作就是这样?

There's a Demo Code on Android Developers to control a Missile Launcher toy through USB. If I send, using the same technique, messages that follow the MIDI protocol will it work just like that ?

感谢您在您的帮助

推荐答案

没有,它不会像远程的工作。

No, it doesn't work remotely like that.

USB MIDI设备确实使用一个驱动程序......这只是他们一般都是级兼容,并且都可以使用自带的操作系统的同一股票的驱动程序。

USB MIDI devices do use a driver... it's just that they are generally "class compliant", and can all use the same stock driver that comes with the OS.

做你的建议,你需要将模拟设备通过USB ...完成相应的PnP ID,什么不是。这几乎是不可能的。你找到了code是用在USB主机模式,而不是相反。

To do what you are proposing, you will need to emulate a device over USB... complete with the appropriate PnP IDs and what not. This is next to impossible. The code you found was for using USB in host mode, not the other way around.

您会发现它是更容易通过网络发送MIDI,并使用现有的许多网络MIDI驱动因素之一。

You will find that it is far easier to send MIDI via network, and use one of the many network MIDI drivers available.

这篇关于发送MIDI信息通过USB在Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆