← Back

ofxOscToPsn

github.com/daitomanabe/ofxOscToPsn · @daitomanabe
OF 0.12 MIDI/OSC Web/Networking

Bridges OSC tracker messages to PosiStageNet by emitting PSN_DATA packets over UDP, with an in-memory tracker map.

0 0 Last commit 9mo ago Created 10mo ago

README

ofxOscToPsn



An openFrameworks addon that bridges OSC to PosiStageNet (PSN v2.x) by emitting PSN_DATA packets over UDP (multicast or unicast).

Test target: openFrameworks 0.12.1 (latest official release at time of writing).

What it does



Supported OSC patterns (default)



Arguments may be float or int. Non-numeric args are ignored.

Orientation



If you pass 6 numeric values, the last 3 are sent as PSN ORI (0x0002) as raw floats. Interpretation (Euler order, degrees/radians, coordinate conventions) is receiver-dependent.

PSN defaults



Install



1. Copy this folder to: openFrameworks/addons/ofxOscToPsn 2. Run the Project Generator (or regenerate the example project) 3. Make sure your project includes ofxOsc and ofxNetwork (the addon declares them in addon_config.mk)

Example



See: examples/oscToPsnExample

Usage (in your app)



#include "ofxOscToPsn.h"

ofxOscToPsn bridge;

void ofApp::setup(){
    ofxOscToPsn::Settings s;
    s.oscListenPort = 9000;
    s.psnHost = "236.10.10.10";
    s.psnPort = 56565;
    s.sendAllKnownTrackers = true;
    bridge.setup(s);
}

void ofApp::update(){
    bridge.update();
}

void ofApp::draw(){
    bridge.drawDebug(10, 10);
}


Limitations / Production notes



If you need high tracker counts, implement splitting using the frame_packet_count mechanism.

License



MIT

Get this addon

HTTPS
SSH