Follow

I need a bit of help converting a UDP string into a OSC message in JS. Could anyone with that sort of knowledge lend me a hand?

@neauoire You mean you have an incoming UDP packet with OSC message in it and need to parse it?

@jakub I have a function that sends a UDP message string to a port. That works.

I would like now to send an OSC object to some other port. I don't want to use OSC.js and I don't fully understand the OSC specs. But from my understanding is just formatted UDP in some way.

Basically I'm looking for is just format that message in a way that OSC listeners can understand.

@neauoire Ok, give me a minute, I will find the message format in the spec.

@neauoire What data do you want to send with each message? Empty (bang), int, float?

@jakub It might vary, but in general it's basic OSC stuff like, address, key value, type.

OSC message format Show more

OSC message format Show more

OSC message format Show more

OSC message format Show more

OSC message format Show more

OSC message format Show more

OSC message format Show more

OSC message format Show more

OSC message format Show more

OSC message format Show more

Show more

OSC message format Show more

@jauntywunderkind420 OSC is a bit overkill for my needs, I only really need to be able to send OSC to one port. I also try as much as possible to keep dependencies to a minimum, and keep a simple build process. OSC doesn't play too well with Electron and adds the rebuild to the process which I would rather do without.

So I'm looking for a simple method to generate a OSC complient message where I a currently sending a UDP message.

Context: github.com/hundredrabbits/Orca

Sign in to participate in the conversation
Merveilles

Revel in the marvels of the universe.