调试超级对撞机 OSCresponderNode
有人知道如何调试超级对撞机的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当您向服务器发送一条服务器无法理解的消息时,会发生“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.
恐怕反应迟来了。但我无法重现你的问题。也许您可以分享您用来发送 OSC 消息的代码?
使用 Supercollider OSCResponderNode 示例中的代码,我在发布窗口中显示以下内容:
即,来自 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:
That is, the
t, r, msg
parameters from your OSCResponderNode handler, as expected.