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

not a real issue ... #1

Open
eloimaduell opened this issue Dec 21, 2012 · 1 comment
Open

not a real issue ... #1

eloimaduell opened this issue Dec 21, 2012 · 1 comment

Comments

@eloimaduell
Copy link

hi there !

big thanks for sharing this addon ! seems usefull !

i'm trying to link an ofxOscVariable to a ofxFloatSlider of ofxGui in OF073 .
my idea is that a parameter could be controlled on the gui and then send updates of it's value, an receive also values from the osc receiver ...

simply i followed your example changing this :

in .h
ofxIntSlider delay;

in .cpp
oscVar.addVariableToPath(delay, "/pm/delay");

i get this compilation issue :

/../../../addons/ofxOscVariable/src/ofxOSCvariable.h: line 120:0
/../../../addons/ofxOscVariable/src/ofxOSCvariable.h:120: error: no matching function for call to 'ofxSlider::ofxSlider(int)'

on this line(120 of ofxOscVariable.h) T value = getValueFromMessage(m,(T)0);

i was hopping that this could work or even be a nice and clean idea to link gui + osc in and out ...
do you think it's possible to get this ?
thanks again.

e*

@mailiam
Copy link
Owner

mailiam commented Dec 21, 2012

hi.
ofxOSCVariable was designed to be used with standard types like int, float and string, whereas ofxGUI has its own ofParameter.

ofParameter wraps standard types to shared ofPtr which makes it hard to integrate with ofxOSCVariable.

Although I haven't tried, there is ofOscParameter in ofxGUI it might be good idea to use that instead.
or you can use other gui with ofxOSCVariable like ofxUI, which also uses standard variable types.

please do share how your doing.
I haven't quite polished this addon yet as I didn't have OSC project since, but I will look in to it on your request.

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

2 participants