{"id":19563282,"url":"https://github.com/existentialaudio/swiftosc","last_synced_at":"2025-04-07T08:25:02.464Z","repository":{"id":45997068,"uuid":"63394392","full_name":"ExistentialAudio/SwiftOSC","owner":"ExistentialAudio","description":"SwiftOSC is an Open Sound Control client and server framework written in Swift.","archived":false,"fork":false,"pushed_at":"2022-08-29T12:12:11.000Z","size":433,"stargazers_count":278,"open_issues_count":18,"forks_count":56,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-03-31T06:08:49.233Z","etag":null,"topics":["opensoundcontrol","osc","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ExistentialAudio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":"existentialaudio","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2016-07-15T05:33:32.000Z","updated_at":"2025-02-28T19:05:41.000Z","dependencies_parsed_at":"2022-08-25T09:20:59.299Z","dependency_job_id":null,"html_url":"https://github.com/ExistentialAudio/SwiftOSC","commit_stats":null,"previous_names":["devinroth/swiftosc"],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExistentialAudio%2FSwiftOSC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExistentialAudio%2FSwiftOSC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExistentialAudio%2FSwiftOSC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExistentialAudio%2FSwiftOSC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ExistentialAudio","download_url":"https://codeload.github.com/ExistentialAudio/SwiftOSC/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247616529,"owners_count":20967404,"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":["opensoundcontrol","osc","swift"],"created_at":"2024-11-11T05:17:11.417Z","updated_at":"2025-04-07T08:25:02.439Z","avatar_url":"https://github.com/ExistentialAudio.png","language":"Swift","readme":"# SwiftOSC v1.4\n\n[![Version](https://img.shields.io/cocoapods/v/SwiftOSC.svg?style=flat)](http://cocoapods.org/pods/SwiftOSC)\n[![License](https://img.shields.io/cocoapods/l/SwiftOSC.svg?style=flat)](https://github.com/devinroth/SwiftOSC/blob/master/LICENSE)\n[![Platform](https://img.shields.io/cocoapods/p/SwiftOSC.svg?style=flat)](http://cocoapods.org/pods/SwiftOSC)\n\nSwiftOSC is a Swift Open Sound Control (OSC) 1.1 client and server framework.\n\n\n*If you are using SwiftOSC in a project, let me know. I would love to make a list of projects using SwiftOSC.*\n\n## Table of Contents\n- [Installation](#installation)\n- [Quick Start](#quick-start)\n- [Projects Using SwiftOSC](#projects-using-swiftosc)\n\n\n## Installation\n\n```\npod 'SwiftOSC', '~\u003e 1.4'\n```\n\nOR\n\n### Step 1\n\nClone or download repository from Github.\n\n### Step 2\n\nOpen SwiftOSC.xcworkspace and build SwiftOSC frameworks. \n\n### Step 3\n\nEmbed SwiftOSC into project.\n\n\n\n## Quick Start\n### OSC Server\n#### Step 1\nImport SwiftOSC framework into your project\n```swift\nimport SwiftOSC\n```\n#### Step 2\nCreate Server\n```swift\nvar server = OSCServer(address: \"\", port: 8080)\n```\n#### Step 3\nStart server\n```\nserver.start()\n```\n\n#### Step 4\nSetup server delegate to handle incoming OSC Data\n```swift\nclass OSCHandler: OSCServerDelegate {\n    \n    func didReceive(_ message: OSCMessage){\n        if let integer = message.arguments[0] as? Int {\n            print(\"Received int \\(integer)\")\n        } else {\n            print(message)\n        }\n    }\n}\nserver.delegate =  OSCHandler()\n```\n### OSC Client\n#### Step 1\nImport SwiftOSC framework into your project\n```swift\nimport SwiftOSC\n```\n#### Step 2\nCreate client\n```swift\nvar client = OSCClient(address: \"localhost\", port: 8080)\n```\n#### Step 3\nCreate a message\n```swift\nvar message = OSCMessage(\n    OSCAddressPattern(\"/\"), \n    100, \n    5.0, \n    \"Hello World\", \n    Blob(), \n    true, \n    false, \n    nil, \n    impulse, \n    Timetag(1)\n)\n```\nCreate a bundle\n```swift\nvar bundle = OSCBundle(Timetag(secondsSinceNow: 5.0), message)\n```\n\n#### Step 4\nSend message\n```swift\nclient.send(message)\n```\nSend bundle\n```swift\n// If the server fully supports timetags, like SwiftOSC, the bundle will be delivered at the correct time.\nclient.send(bundle)\n```\n\n## Projects Using SwiftOSC\n\n\nFor additional information on Open Sound Control visit http://opensoundcontrol.org/.\n","funding_links":["https://patreon.com/existentialaudio"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexistentialaudio%2Fswiftosc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexistentialaudio%2Fswiftosc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexistentialaudio%2Fswiftosc/lists"}