Go to file
2023-10-21 09:14:35 -04:00
.github/ISSUE_TEMPLATE Update issue templates 2023-08-15 16:04:00 -04:00
Exceptions feat!: change accessing mechanism for OscArguments 2023-10-21 09:14:35 -04:00
.gitignore chore: add conventional commit git hook 2023-10-18 10:49:45 -04:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2023-08-15 16:06:45 -04:00
commitlint.config.js chore: add conventional commit git hook 2023-10-18 10:49:45 -04:00
LICENSE Create LICENSE 2023-08-15 15:33:14 -04:00
OscAddress.cs some breaking changes, mostly style stuff 2023-08-17 14:19:26 -04:00
OscArgument.cs feat!: change accessing mechanism for OscArguments 2023-10-21 09:14:35 -04:00
OscBundle.cs refactor: remove unused imports 2023-10-20 09:53:29 -04:00
OscClient.cs refactor: remove unused imports 2023-10-20 09:53:29 -04:00
OscMessage.cs feat!: change accessing mechanism for OscArguments 2023-10-21 09:14:35 -04:00
OscReceiver.cs feat!: change accessing mechanism for OscArguments 2023-10-21 09:14:35 -04:00
OscSender.cs some breaking changes, mostly style stuff 2023-08-17 14:19:26 -04:00
package-lock.json chore: add conventional commit git hook 2023-10-18 10:49:45 -04:00
package.json chore: add conventional commit git hook 2023-10-18 10:49:45 -04:00
README.md Update README.md 2023-08-15 15:33:49 -04:00

godotOscSharp

A simple library for OpenSoundControl sending and receiving over a network, for use in Godot.

It's been lightly tested in Godot 4.1, invoked from a scene's script written in C#.

How to Use

The easiest way to download this is to use one of the following commands from inside your project: git submodule add https://github.com/cass-dlcm/godotOscSharp.git or git submodule add git@github.com:cass-dlcm/godotOscSharp.git, depending on whether you connect to GitHub using HTTPS or SSH.

Then use:

cd godotOscSharp
git checkout tags/v0.1.0 -b v0.1.0-branch

It'll put the files inside a directory in your project named godotOscSharp, and checkout the version listed in the tag.

The constructor for the OscReceiver takes in an int port as a mandatory argument.

The constructor for the OscSender takes in an IPAddress and a int port as mandatory arguments.

Here's an example of how to create and use a receiver.

var receiver = new godotOscSharp.OscReceiver(9000);
receiver.MessageReceived += (sender, e) =>
{
    GD.Print($"Received a message from {e.IPAddress}:{e.Port}");
    GD.Print(e.Message.ToString());
    };
receiver.ErrorReceived += (sender, e) =>
{
    GD.Print($"Error: {e.ErrorMessage}");
};

License

This program is made available with the AGPL-3-or-later license set.