You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
osc.js is a library for reading and writing [Open Sound Control](http://opensoundcontrol.org) messages in JavaScript. It has no dependencies on a particular environment or type of transport. As a result, it can be used in Node.js or in a web browser.
4
+
osc.js is a library for reading and writing [Open Sound Control](http://opensoundcontrol.org) messages in JavaScript. It has no dependencies on the type of environment or transport used. As a result, it works both in Node.js and in a web browser.
5
5
6
6
Why osc.js?
7
7
-----------
8
8
9
-
There are several other OSC libraries written in JavaScript. All of them depend on Node.js-specific APIs, which means they can't be run in a browser. osc.js uses only cross-platform APIs (specifically, `TypedArrays` and `DataView`) to ensure that it can run equally well in Node.js or in a web browser. This makes it suitable for entirely in-browser applications such as those on Chrome OS and Firefox OS.
9
+
There are several other OSC libraries written in JavaScript. All of them depend on Node.js-specific APIs, which means they can't be run in a browser. osc.js uses only cross-platform APIs (specifically, `TypedArrays` and `DataView`) to ensure that it can run in any modern JavaScript environment.
10
10
11
11
What Does it Do?
12
12
----------------
13
13
14
-
osc.js reads and writes OSC-formatted binary data into plain JavaScript objects. It provides adaptors for reading/writing Node.js Buffer objects as well as standard ArrayBuffer objects.
14
+
osc.js reads and writes OSC-formatted binary data into plain JavaScript objects. It provides adaptors for Node.js Buffer objects as well as standard ArrayBuffer objects.
15
15
16
16
You can receive OSC data in whatever manner works best for your application: serial port APIs such as node-serialport or chrome.serial, socket APIs such as Node.js dgram or WebRTC data channels, WebSockets or binary XHR messages should all work. Connect osc.js up to your source of incoming/outgoing data, and you're all set.
17
17
18
18
Status
19
19
------
20
20
21
-
osc.js is in early, active development. It does not yet (but will) support:
21
+
osc.js is new and still in development. It does not yet (but will) support:
0 commit comments