如何在iOS上使用CoreMIDI? [英] How to use CoreMIDI on iOS?

查看:231
本文介绍了如何在iOS上使用CoreMIDI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在iOS的CoreMIDI上找到很多信息.通过向设备本身发送消息,甚至可以播放MIDI声音. iPhone或iPad是否已安装MIDI设备,还是必须连接设备才能与之交互?

I have been unable to find much information on CoreMIDI for iOS. Is it even possible to play a MIDI sound by sending a message to the device itself. Does the iPhone or iPad have a MIDI device installed or do you have to have a device connected to interface with?

推荐答案

您应该看一下

You should give a look at pete goodliffe's blog and he generously provides an example project. It helped me a lot to start programming CoreMIDI.

现在,关于您的问题,在iOS上,大多数使用CoreMIDI网络会话. 参加同一网络会话"的参与者彼此发送消息.

Now about your questions, on iOS, mostly CoreMIDI network sessions are used. The participants to a same "Network Session" send messages to each others.

例如,您在Mac上配置了网络会话(使用音频MIDI设置"工具),然后可以将iOS设备连接到该网络会话. 这样,您可以将消息从iOS发送到OSX主机,反之亦然.

For example, you configure a network session on your Mac (using Audio MIDI Setup tool) and you can connect your iOS devices to it. This way, you can sent messages from iOS to your OSX host and vice versa.

CoreMIDI网络会话依靠RTP协议传输MIDI消息,而Bonjour则可以发现主机.

CoreMIDI network sessions relies on the RTP protocol to transport MIDI messages and Bonjour to discover hosts.

此外,CoreMIDI还可以处理连接到系统的MIDI接口,但是默认情况下,iOS设备没有物理MIDI接口. 如果要直接将iPhone连接到合成器,则必须购买外部硬件. 但是,iPad可以通过相机套件连接到符合USB类的Midi接口.

Next to that, CoreMIDI can also handle MIDI interface connected to the system, but iOS devices don't have physical MIDI interface by default. You have to buy external hardware if you want connect directly your iPhone to a synthesizer. However, the iPad can be connected to an USB class compliant Midi interface via the camera kit.

另一件事,在独立的iOS设备上,您可以使用本地CoreMIDI会话进行发送,以从其他CoreMIDI兼容应用程序收发消息.

Another thing, on a standalone iOS device, you can send use the local CoreMIDI session to send or receive messages from/to another CoreMIDI compatible application.

这篇关于如何在iOS上使用CoreMIDI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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