http://opensoundcontrol.org/i want to be able to send/receive osc messages (first i want just to communicate between two instances of my app via wifi but later i want to communicate with other software that uses osc). can you help me how to achieve it? i've found a few lua implementations but they were all either c or beta and/or using some package i could not put to work with gideros.
https://github.com/koniu/luaoschttps://github.com/grrrwaaa/luaoschttps://github.com/headchant/loveOSCi would want some cross-platform solution, that's why i look for lua implementations mostly and not yet interested much in java e.g.
thanks for any ideas.
Comments
And this seems to be exactly what you need.
https://github.com/grrrwaaa/luaosc
All you need is to create gideros stub file, like this:
create Android.mk file build it with AndroidNDK to create .so files for Android
Build with mingw to create dll and put it in plugins folder on Windows
Build with g++ to create dylib and put it in plugins folder on Mac
Simply copy the source files to Plugins directory in exported xCode project for iOS
What do you need first, Windows? Mac?
i will try it out this way.
i need for android and windows mainly, so far.
Fragmenter - animated loop machine and IKONOMIKON - the memory game
because it also needs apache portable runtime to use sockets and stuff from.
Maybe better version is to use the second one, which is beta, but can be used as plain lua, because it is using lua_socket, which Gideros already has, only include the needed lua socket files to your project from Gideros installation directory
Fragmenter - animated loop machine and IKONOMIKON - the memory game
I will try tonight again
there is a handy free android app called 'control' with which you can check if receiving (and maybe sending) osc messages is working in your app. or to test with pure-data here is a simple intro:
http://hexler.net/docs/touchosc-getting-started-osc
update: the pure-data method in the above page seems not to work for me
update2:
this pd file can make you able to test osc message receive/send with pure-data in 5 minutes:
http://charlie-roberts.com/Control/misc/patchesAndCode/Control-to-PD.pd
Fragmenter - animated loop machine and IKONOMIKON - the memory game
just put them in the Plugins folder in your Gideros installation directory and restart Gideros Player
could you perhaps send a gideros player that has this included (if you may have it already)?
and so what about android? any hopes?
so far thanks for your kind help, i'm quite enthusiastic about the possibilities of osc.
Fragmenter - animated loop machine and IKONOMIKON - the memory game
will check more about android
this example code throws error (even if i change osc.client to osc in require):
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
if not, perhaps for android the java versions are the easier to make a plugin from?
https://github.com/hoijui/JavaOSC
http://www.sciss.de/netutil/
thanks
Fragmenter - animated loop machine and IKONOMIKON - the memory game
But it was easy to build pack lib, to use with this version:
https://github.com/koniu/luaosc
You can try if this seems to fit your need
Fragmenter - animated loop machine and IKONOMIKON - the memory game
.\osc.lua:301: bad argument #1 to 'pack' (bad mode `>')
stack traceback:
.\osc.lua:301: in function 'encode_timetag'
.\osc.lua:74: in function 'encode'
.\client.lua:33: in function 'send'
main.lua:65: in main chunk
Fragmenter - animated loop machine and IKONOMIKON - the memory game
http://lua-users.org/lists/lua-l/2006-04/msg00408.html
http://www.rossbencina.com/code/oscpack
if you can make sense of it.
Fragmenter - animated loop machine and IKONOMIKON - the memory game
http://liblo.sourceforge.net/
Fragmenter - animated loop machine and IKONOMIKON - the memory game
local osc = require "osc"
then i get an error:
.\oscparty.lua:1: module 'osc' not found:
no field package.preload['osc']
no file '.\osc.lua'
no file 'C:\Program Files (x86)\Gideros\lua\osc.lua'
no file 'C:\Program Files (x86)\Gideros\lua\osc\init.lua'
no file 'C:\Program Files (x86)\Gideros\osc.lua'
no file 'C:\Program Files (x86)\Gideros\osc\init.lua'
no file '.\osc.dll'
no file 'C:\Program Files (x86)\Gideros\osc.dll'
no file 'C:\Program Files (x86)\Gideros\loadall.dll'
any ideas? thanks.
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
would it work only on windows, or mac too? (and what about further exports?)
thanks
Likes: Apollo14
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: pie
Fragmenter - animated loop machine and IKONOMIKON - the memory game
of course OSC plugin would be most important at this point, and i guess it can be extended to support OSCQuery later on.
Fragmenter - animated loop machine and IKONOMIKON - the memory game
It claims to be pure lua and relying on lua socket for communications, which Gideros already supports.
Likes: pie, MoKaLux
on the other hand it will be hard to extend to OSCQuery. see https://github.com/OSSIA/libossia for a library that does all (but i guess needs much more work to add to gideros due to bindings etc).
so for now i'd be quite happy with OSC only, if that's a relatively simple thing to add using losc. then later if it turns out that i need OSCQuery desperately, we can discuss further what we can do.
thanks a lot
Likes: MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game