Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: OSC communication class #43

Open
Daandelange opened this issue May 12, 2015 · 0 comments
Open

Feature: OSC communication class #43

Daandelange opened this issue May 12, 2015 · 0 comments

Comments

@Daandelange
Copy link

Hello,

I'm thinking about implementing a class to include simplifying OSC communication with Duration from a standalone application. Anybody using Duration would need this.
Both a receiver and sender would be great. Usage would be like:

durationRC durationOut;
durationOut.connect("localhost", 12346);
durationOut.stop();
durationOut.play();
etc.
durationReceiver durationIn;
durationIn.listen(12345);
durationIn.autoBindToTracks();
durationIn.getCurrentTime();
ofAddListener(durationReceiver::durationFloatEvent, this, &ThisClass::floatListener);
void ThisClass::floatListener(durationFloatEventArgs &_args){
    if( _args.track.compare("/myTrack/")==0 ){
        float value = _args.value;
    }
}

What do you think about this?
Should the receiver be a singleton ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant