OSC Send address without args
Posted: 07 Jun 2012 06:13
I am attempting to control Ardour (http://ardour.org/osc_control) via Lemur, however am running into a problem already.
The DAW expects some functions without any arguments - i.e "/ardour/transport_play". In other software (such as the unix/linux command line oscsend utility) I can send OSC addresses without arguments.
Is there any way to send ONLY the OSC address ... i.e. "/target/button" without sending the args?
I've tried :
oscout(0, '/ardour/transport_play'); - Invalid
oscout(0, '/ardour/transport_play', {}); - Invalid
oscout(0, '/ardour/transport_play', null); - Invalid
oscout(0, '/ardour/transport_play', NULL); - Invalid
It appears that the oscout() script function automagically determines the OSC value type via the 3rd argument. For instance:
oscout(0, '/something', 'test') will send an OSC message of type String with a value of 'test' to address '/something'
oscout(0, '/seomthing, 1) will send an OSC message of type INT with a value of 1 to address '/something'
It would be nice if you could specify a NULL type to send ONLY the address.
The DAW expects some functions without any arguments - i.e "/ardour/transport_play". In other software (such as the unix/linux command line oscsend utility) I can send OSC addresses without arguments.
Is there any way to send ONLY the OSC address ... i.e. "/target/button" without sending the args?
I've tried :
oscout(0, '/ardour/transport_play'); - Invalid
oscout(0, '/ardour/transport_play', {}); - Invalid
oscout(0, '/ardour/transport_play', null); - Invalid
oscout(0, '/ardour/transport_play', NULL); - Invalid
It appears that the oscout() script function automagically determines the OSC value type via the 3rd argument. For instance:
oscout(0, '/something', 'test') will send an OSC message of type String with a value of 'test' to address '/something'
oscout(0, '/seomthing, 1) will send an OSC message of type INT with a value of 1 to address '/something'
It would be nice if you could specify a NULL type to send ONLY the address.