Vizcon.OSC 1.0.3

dotnet add package Vizcon.OSC --version 1.0.3
                    
NuGet\Install-Package Vizcon.OSC -Version 1.0.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Vizcon.OSC" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Vizcon.OSC" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="Vizcon.OSC" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Vizcon.OSC --version 1.0.3
                    
#r "nuget: Vizcon.OSC, 1.0.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Vizcon.OSC&version=1.0.3
                    
Install Vizcon.OSC as a Cake Addin
#tool nuget:?package=Vizcon.OSC&version=1.0.3
                    
Install Vizcon.OSC as a Cake Tool

Vizcon.OSC 🎶

About This Fork 🚀

This project is a modernized fork of SharpOSC by Valdemar Örn Erlingsson. I didn't reinvent the wheel—I just gave it a fresh coat of .NET 8 paint, sprinkled in some newer language features, and made sure it's ready for the future.

Original Work & Credits 🎩

All the heavy lifting was done by Valdemar back in 2012, and this project proudly carries his work forward. It remains free and open under the original MIT License, so everyone can continue using, modifying, and sharing it however they see fit.

What’s New?

  • Upgraded to .NET 8 for modern compatibility
  • Improved performance & language features
  • Bug fixes and refinements
  • Proper OSC message formatting for Ventuz compatibility
  • Fixed float encoding issues with correct Big Endian conversion
  • Ensured 4-byte alignment for OSC messages

Installation 📦

You can install Vizcon.OSC via NuGet:

 dotnet add package Vizcon.OSC

Or use the NuGet Package Manager in Visual Studio.

Usage 📖

Sending an OSC Message
using Vizcon.OSC;

var sender = new OscSender("127.0.0.1", 9000);
var message = new OscMessage("/test", new object[] { 55, "hello", 3.1f });
sender.Send(message);
Receiving OSC Messages
var listener = new OscListener(9000);
listener.MessageReceived += (msg) => 
{
    Console.WriteLine($"Received: {msg.Address}");
};
listener.Start();

Ventuz Compatibility Fixes 🛠️

  • Fixed Float Encoding: Floats are now correctly converted to Big Endian for Ventuz.
  • Ensured Message Alignment: All strings and type tags are properly padded to 4 bytes.
  • Handled Special Cases: Improved parsing to prevent "Unknown Type Tag" errors.

Disclaimer ⚠️

I claim no ownership over the original work—this is just an evolution. If you like it, great! If something breaks, well... you know the drill. 🔧

License 📝

This project follows the original MIT License from SharpOSC. See LICENSE for details.


🚀 Happy coding!

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 277 3/4/2025
1.0.2 108 3/2/2025
1.0.1 93 3/1/2025
1.0.0 96 2/28/2025