Coder Social home page Coder Social logo

eugenevanchugov / godosc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from afarra6/godosc

0.0 0.0 0.0 58 KB

Implementation of the Open Sound Control protocol in Godot using GDScript

License: Creative Commons Zero v1.0 Universal

GDScript 100.00%

godosc's Introduction

GodOSC

Implementation of the Open Sound Control protocol in Godot using GDScript and a group of nodes for convenient use. GodOSC receives and sends OSC messages over UDP. Currently supports OSC messages (now with experimental bundle support), floats, integers, strings, and blobs.

OSCServer

The OSCServer sets up a UDPServer to receive and parse OSC messages. These messages are stored in a Dictionary with the following convention:

{ "/example/address", [value1, value2, value] }

OSCServer supports floats and ints.

OSCClient

The OSCClient is used to send OSC messages to an OSC server, either in Godot or an outside program. OSCClients can only send to one server at a time but are able to send multiple messages to multiple addresses. Essentially you should have a 1:1 client-to-server ratio.

OSCReceiver

A convenience node for controlling nodes with OSC messages. Attach an OSCReceiver to a node you'd like to manipulate and then extend the script on the OSCReceiver. You can then manipulate the parent's properties.

IMPORTANT: You must check if the OSCServer has received a message on the address the OSCReciever is listening on. Here is some example code

if target_server.incoming_messages.has(osc_address):

Do something with the incoming data

OSCMessage

A convenience node for creating an OSC message. This can be placed anywhere within your scene but an OSCClient must be present to work. Again, make sure to extend the script on the OSC message to add your own code.

Demo Projects

Below are links to demo projects using common electronic music software:

godosc's People

Contributors

afarra6 avatar nullmember avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.