Send Open Sound Control (OSC) Messages

版本 1.1.0.0 (2.0 KB) 作者: Mark
Simple script to send a single Open Sound Control (OSC) Message.
1.3K 次下载
更新时间 2011/5/10

查看许可证

Sends a Open Sound Control (OSC) message through a UDP connection

oscsend(u,path)
oscsend(u,path,types,arg1,arg2,...)
oscsedn(u,path,types,[args])

u = UDP object with open connection.
path = path-string
types = string with types of arguments,
supported:
i = integer
f = float
s = string
N = Null (ignores corresponding argument)
I = Impulse (ignores corresponding argument)
T = True (ignores corresponding argument)
F = False (ignores corresponding argument)
B = boolean (not official: converts argument to T/F in the type)
not supported:
b = blob

args = arguments as specified by types.

EXAMPLE
u = udp('127.0.0.1',7488);
fopen(u);
oscsend(u,'/test','ifsINBTF', 1, 3.14, 'hello',[],[],false,[],[]);
fclose(u);

See http://opensoundcontrol.org/ for more information about OSC.

引用格式

Mark (2024). Send Open Sound Control (OSC) Messages (https://www.mathworks.com/matlabcentral/fileexchange/31400-send-open-sound-control-osc-messages), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2009b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 AI for Audio 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1.0.0

Fixed a little bug (line 40: nargin >= 3 instead of 2)

1.0.0.0