调试超级对撞机 OSCresponderNode

发布于 2024-09-19 19:09:19 字数 480 浏览 5 评论 0原文

有人知道如何调试超级对撞机的 OSCresponderNode 吗?

我试图用这个捕获来自另一个程序的消息:

o = OSCresponderNode(nil, '/note', { arg t, r, msg; t.postln; r.postln; msg.postln; Synth( "guru2", [\mfreq, msg[1]]);  }).add;

但是,当我向它发送消息时,超级对撞机只是给我

FAILURE /note Command not found

我假设这告诉我超级对撞机服务器正在成功接收一条消息来处理/注意,但要么 a) OSCresponderNode 未正确注册,要么 b) 响应程序功能以某种方式失败。

我的假设正确吗?

难道是节点定义失败?当我执行该行时,我没有收到错误消息。但也许回调函数在实际触发之前不会被执行和测试?

Anyone have an idea how to debug supercollider's OSCresponderNode?

I'm trying to catch messages from another program with this :

o = OSCresponderNode(nil, '/note', { arg t, r, msg; t.postln; r.postln; msg.postln; Synth( "guru2", [\mfreq, msg[1]]);  }).add;

However, when I fire messages at it, supercollider is just giving me

FAILURE /note Command not found

I'm assuming this is telling me that the supercollider server is successfully picking up a message to address /note, but that either a) the OSCresponderNode wasn't registered correctly, or b) the responder function has failed in some-way.

Am I right in assuming this?

Could it be a failure in defining the node? I don't get an error message when I execute that line. But maybe the callback function doesn't get executed and tested until it's actually triggered?

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

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

发布评论

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

评论(2

灼痛 2024-09-26 19:09:19

当您向服务器发送一条服务器无法理解的消息时,会发生“FAILURE /note Command not found”。但 OSCresponderNode 不是服务器端对象,而是客户端对象。

要解决此问题,您要做的是将消息发送到客户端的端口,而不是服务器的端口。

"FAILURE /note Command not found" is what happens when you send the server a message that it doesn't understand. But OSCresponderNode is not a server-side object, it's client-side.

What you do to fix this, is send messages to the client's port, not the server's port.

眼眸 2024-09-26 19:09:19

恐怕反应迟来了。但我无法重现你的问题。也许您可以分享您用来发送 OSC 消息的代码?

使用 Supercollider OSCResponderNode 示例中的代码,我在发布窗口中显示以下内容:

133867.10639964
an OSCresponderNode
[ /note, Hello App 1 ]

即,来自 OSCResponderNode 处理程序的 t, r, msg 参数,如预期的那样。

Belated response, I'm afraid. But I can't reproduce your problem. Perhaps you could share the code you use to send the OSC messages?

Using the code from the Supercollider OSCResponderNode example, I get the following appearing in my post window:

133867.10639964
an OSCresponderNode
[ /note, Hello App 1 ]

That is, the t, r, msg parameters from your OSCResponderNode handler, as expected.

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