python-osc icon indicating copy to clipboard operation
python-osc copied to clipboard

No way to take raw OSC packet and convert it to OscMessage object

Open FigrHed opened this issue 7 years ago • 1 comments

I'm working with SLIPSerial and after I have decoded the packet I can't quickly parse it into an osc message, though all the methods are there to do it easily.

Would make this handy library even handier!

FigrHed avatar May 22 '18 12:05 FigrHed

This is working for me at the moment:

from pythonosc.osc_message import OscMessage
msg = OscMessage(b'/a/sd\x00\x00\x00,Ts\x00HELP!\x00\x00\x00')
print(msg.address)
print(msg.params)

s-ol avatar Jun 27 '19 22:06 s-ol