{"id":17360298,"url":"https://github.com/keijiro/oscjack","last_synced_at":"2025-04-12T18:40:06.040Z","repository":{"id":34069486,"uuid":"37857919","full_name":"keijiro/OscJack","owner":"keijiro","description":"Lightweight C# implementation of OSC server/client","archived":false,"fork":false,"pushed_at":"2022-04-25T14:05:49.000Z","size":150,"stargazers_count":483,"open_issues_count":16,"forks_count":66,"subscribers_count":19,"default_branch":"main","last_synced_at":"2025-04-11T14:43:53.690Z","etag":null,"topics":["osc","unity","unity3d"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/keijiro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-22T13:51:24.000Z","updated_at":"2025-02-13T08:46:11.000Z","dependencies_parsed_at":"2022-07-13T15:29:36.989Z","dependency_job_id":null,"html_url":"https://github.com/keijiro/OscJack","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keijiro%2FOscJack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keijiro%2FOscJack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keijiro%2FOscJack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keijiro%2FOscJack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keijiro","download_url":"https://codeload.github.com/keijiro/OscJack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248616377,"owners_count":21134070,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["osc","unity","unity3d"],"created_at":"2024-10-15T19:16:53.080Z","updated_at":"2025-04-12T18:40:06.001Z","avatar_url":"https://github.com/keijiro.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"OSC Jack\n========\n\n![gif](https://i.imgur.com/mjp2o3t.gif)\n\n**OSC Jack** is a lightweight C# implementation of [OSC (Open Sound Control)]\nserver/client, mainly aiming to provide OSC support to [Unity].\n\n[OSC (Open Sound Control)]: http://opensoundcontrol.org/\n[Unity]: https://unity3d.com/\n\nSystem Requirements\n-------------------\n\n- Unity 2021.3 or later\n\nOSC Jack requires `System.Net.Sockets` supported on most platforms but a few\nnetwork-restrictive platforms like WebGL.\n\nHow To Install\n--------------\n\nThis package is available in the `Keijiro` scoped registry.\n\n- Name: `Keijiro`\n- URL: `https://registry.npmjs.com`\n- Scope: `jp.keijiro`\n\nPlease follow [this gist] to add the registry to your project.\n\n[this gist]: https://gist.github.com/keijiro/f8c7e8ff29bfe63d86b888901b82644c\n\nOSC Connection File\n-------------------\n\n![OSC Connection](https://user-images.githubusercontent.com/343936/165038054-33bebb1c-27b6-4fa3-9dd7-6f4091c7eb65.png)\n\nThe OSC Jack components require **OSC Connection** files to specify connection\ntypes, host addresses and port numbers. To create a new OSC Connection file,\nnavigate to Assets \u003e Create \u003e ScriptableObjects \u003e OSC Jack \u003e Connection.\n\nYou must specify a target host address to send OSC messages (leave it empty for\nreceive-only connections).\n\nOSC Components\n--------------\n\n### OSC Event Receiver\n\n![Event Receiver](https://user-images.githubusercontent.com/343936/165036750-63baad08-5b3c-4145-b9b9-e956d199d3dd.png)\n\n**OSC Event Receiver** receives OSC messages and invokes a [UnityEvent] with\nreceived data.\n\n[UnityEvent]: https://docs.unity3d.com/Manual/UnityEvents.html\n\n### OSC Property Sender\n\n![Property Sender](https://user-images.githubusercontent.com/343936/165036537-2b80d2ed-a69a-4101-8678-86d244440369.png)\n\n**OSC Property Sender** observes a component property and sends OSC messages\non changes to it.\n\nOSC Monitor\n-----------\n\n![OSC Monitor](https://i.imgur.com/ZExVcuz.png)\n\n**OSC Monitor** is a small utility inspecting incoming OSC messages. To open\nthe monitor, navigate to Window \u003e OSC Monitor.\n\nLow-Level API\n-------------\n\n### Supported data types\n\nAt the moment, the OSC Jack low-level API only supports `int`, `float` and\n`string` data types.\n\n### OscClient (implements IDisposable)\n\n`OscClient` is a class for sending OSC messages, supporting up to four\narguments within a single message.\n\n```csharp\n// IP address, port number\nusing (var client = new OscClient(\"127.0.0.1\", 9000))\n{\n  // Send two-component float values ten times.\n  for (var i = 0; i \u003c 10; i++)\n  {\n    yield return new WaitForSeconds(0.5f);\n    client.Send(\"/test\",       // OSC address\n                i * 10.0f,     // First element\n                Random.value); // Second element\n  }\n}\n```\n\n### OscServer (implements IDisposable)\n\n`OscServer` is a class for receiving OSC messages, supporting up to four\narguments within a single message.\n\nYou can add a delegate to `MessageDispatcher` to receive messages sent to a\nspecific OSC address (or give an empty string to receive all messages).\n\nPlease note that the server invokes the delegates in the server thread. You\nmay have to queue the events for processing them in the main thread.\n\n```csharp\nusing (var server = new OscServer(9000)) // Port number\n{\n  server.MessageDispatcher.AddCallback(\n    \"/test\", // OSC address\n    (string address, OscDataHandle data) =\u003e {\n        Debug.Log(string.Format(\"({0}, {1})\",\n            data.GetElementAsFloat(0),\n            data.GetElementAsFloat(1)));\n    }\n  );\n  yield return new WaitForSeconds(10);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeijiro%2Foscjack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeijiro%2Foscjack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeijiro%2Foscjack/lists"}