Swiftpack.co - Package - segabor/OSCCore
Swift Platform


OSCCore is a OpenSoundControl implementation in pure Swift. It is aimed to run on various platforms, including embedded systems like Raspberry Pi.

Using this module you can easily pass or receive OSC messages, communicate with SuperCollider or other great digital musical instruments. OSC is also great for implmenenting other protocols like TUIO.

Passing messages is easy, just create an OSCMessage and send it. A message is composed of address and arguments. Address is like an URI, starting with slash character. Arguments tipically are simple strings and numbers.

import OSCCore

let msg = OSCMessage("/instr/osc1", ["frequency", 440.0])

The next thing is to open channel.

let channel: UDPClient? = UDPClient(host: "", port: 57110)

Once you have an open channel, send your message.

msg.send(over: channel)

That's all! For more examples please see Sources folder.


OSCCore is currently provided as Swift PackageManager module. To include OSCCore to your project add the following dependency to your Package.swift file

.Package(url: "https://github.com/segabor/OSCCore.git", majorVersion: 0)

Other dependency managers like CocoaPods or Chartage is under consideration.

Version history

  • 0.9 OSC Specification 1.0
  • 0.4 Important fixes: timestamp and OSC packet detection Switch to Swift 4.0.2
  • 0.3.1 iOS support Note: this is last Swift 3 supported version
  • 0.3 Replace socket implementation to IBM's BlueSocket
  • 0.2.3 Bugfix release (see issue #5).
  • 0.2.2 Improved timetag support
  • 0.2.1 Bugfix: UDP Client now accepts bundles too
  • 0.2 Dispatch bundle messages


Stars: 13
Help us keep the lights on


Used By

Total: 0


0.9.0 - Jan 14, 2018

OSCCore now conforms to OSC 1.0!

0.4.0 - Jan 14, 2018

This release welcomes Swift 4. It also contains important bugfixes

  • Fix broken OSC timestamp serialization and date conversion
  • OSCBundles were not recognized

0.2.3 - May 15, 2017

This is a bugfix release that addresses issue #5.