将 MIDI 源发布为 Bonjour 服务
我为 OSX 和 Windows 编写了一个 VST/AU/RTAS 合成器插件,它也有一个 iPhone 等效插件。我想允许两者通过局域网相互通信,以便 iPhone 应用程序可用于将 MIDI 控制器数据发送到插件。我计划在 iPhone 上创建一个 MIDI 源并将其发布为 Bonjour 服务,以便在 OSX 或 Windows 上运行的插件可以找到它并从中接收 MIDI。
对此我有几个问题要问:
1)我是否真的必须将 MIDI 源发布为 Bonjour 服务,还是 coremidi 主机(在 iPhone 上运行)自动发布自身?
2)是否有任何代码示例可以展示如何做这类事情?
我看过下面的帖子,但这个答案只涵盖客户端,找到 Bonjour 服务而不是发布方,它通过 OSC 传输 MIDI,它只涵盖 OSX 而不是 Windows(我知道,我不是要求太多了;) )
如何从我的 iOS 应用程序向 Mac 应用程序发送 MIDI 或 OSC 信号?
干杯,
约翰。
I have written a VST/AU/RTAS synthesiser plugin for OSX and Windows that also has an iPhone equivalent. I would like to allow the two to communicate with each other over a local area network so that the iPhone app can be used to send MIDI controller data to the plugin. I plan to create a MIDI source on the iPhone and publish it as a Bonjour service so that the plugin running on OSX or Windows can find it and receive midi from it.
I have a couple of questions to ask about this:
1) Do I actually have to publish the MIDI source as a Bonjour service or does a coremidi host (running on iPhone) automatically publish itself?
2) Are there any code examples available that show how to do this sort of thing?
I have seen the following post but the answer to this only covers the client side, finding a Bonjour service but not the publishing side, and it transmits MIDI via OSC, and it only covers OSX but not Windows (I know, I'm not asking much! ;) )
How to send MIDI or OSC signals to a Mac application from my iOS application?
Cheers,
John.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AFAIK 您必须自己发布该服务。 NSNetService 和 NSNetServiceBrowser 是您需要的类。请查看配套指南。我发现这篇文章 Cocoa for Scientifics 对入门特别有帮助。两者都有一些不错的代码示例。 Bonjour 浏览器 对于测试很有用。
bonjour 服务类型列表已经有
和
但我认为最好编写您自己的特定于应用程序的类型名称,除非您的应用程序与这些服务之一插件兼容。
AFAIK you'll have to publish the service yourself. NSNetService and NSNetServiceBrowser are the classes you need. Check out the companion guide. I found this article on Cocoa for Scientists particularly helpful in getting started. Both have some decent code samples. The Bonjour Browser is useful for testing.
The list of bonjour service types already has
and
But I think it's best to make up your own application-specific type name unless your app is plug-compatible with one of these services.