如何在 iPad 上以编程方式生成 MIDI 事件

发布于 2024-10-09 00:05:43 字数 57 浏览 0 评论 0原文

我想测试 MIDI 应用程序,并希望在不连接物理键盘的情况下生成一些 MIDI 事件。有什么提示吗?

I would like to test a MIDI app and want to generate some MIDI events without attaching a physical keyboard. Any hints?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

此刻的回忆 2024-10-16 00:05:43

如果您使用的是 CoreMidi,请将您的应用程序设置为使用 MIDINetworkSessions。一旦您通过网络宣传您的 iPad,请使用任何 MIDI 音序器等连接到它并通过 WiFi 发送消息。

这样你就可以在不经常拔出/重新插入东西的情况下进行测试,同时仍然与 Xcode 相连,这是一个巨大的好处。

另一种选择是创建一个人工 MIDIPacketList 并将其直接发送到您的处理程序,但这灵活性较差。

If you are using CoreMidi, setup your app to use MIDINetworkSessions. Once you advertise your iPad over the network, use any MIDI sequencer etc to connect to it and send messages over WiFi.

That way you can test without constantly unplugging/replugging things, and while still tethered to Xcode which is a huge bonus.

The other option would be to create an artificial MIDIPacketList and send it directly to your handler, but this is a lot less flexible.

谜兔 2024-10-16 00:05:43

如果您的意思是向 iPad 发送 MIDI 事件,那么您可以使用一个简单的程序,例如 Rondo 播放 MIDI 文件。

If you mean sending a MIDI event to an iPad, then you could use a simple program like Rondo to play a MIDI file to it.

ら栖息 2024-10-16 00:05:43

我想您需要一些源代码来在 iPad 上生成 MIDI 事件。

我找到了这个。它是CoreMIDI的一个包装类,它有发送/接收一些MIDI事件的源代码。

RCTM多媒体库
https://github.com/recotana/RCTMidiLib

我无线连接 iPad 和 Mac,并成功发送/接收使用 iPad 上的测试应用程序的 MIDI 事件。

I suppose you need some source codes to generate MIDI events on iPad.

I found this one. It is a wrapper class of CoreMIDI, and it has source codes of sending/receiving some MIDI events.

RCTMidiLib
https://github.com/recotana/RCTMidiLib

I connect iPad and Mac wirelessly, and successfully send/receive MIDI events using the test application on iPad.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文