谁能告诉我如何在iOS上使用CoreMIDI? [英] Can anyone show me how to use CoreMIDI on iOS?

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

问题描述

我无法在CoreMIDI for iOS上找到太多信息。甚至可以通过向设备本身发送消息来播放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?

推荐答案

您应该看看 pete goodliffe的博客和他慷慨地提供了一个示例项目。
开始编程CoreMIDI给了我很多帮助。

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天全站免登陆