OSC on Android?
Date | 2016-01-26 15:36 |
From | Rory Walsh |
Subject | OSC on Android? |
I'm trying to get OSC working on Android but Csound will not load it. This is actually the first plugin opcode I've tried using on Android, do I have to set the opcodedir variable? Right now the lib is there beside all my other .so files.
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
|
Date | 2016-01-26 15:55 |
From | Steven Yi |
Subject | Re: OSC on Android? |
Michael may be better able to assist, but this code from the Csound Android application can be used for reference: https://github.com/csound/csound/blob/develop/android/CsoundForAndroid/CsoundApplication/src/main/java/com/csounds/Csound6/CsoundAppActivity.java#L595-L616 On Tue, Jan 26, 2016 at 10:36 AM, Rory Walsh |
Date | 2016-01-26 16:15 |
From | Rory Walsh |
Subject | Re: OSC on Android? |
Nice detective work there Steven! On 26 January 2016 at 15:55, Steven Yi <stevenyi@gmail.com> wrote: Michael may be better able to assist, but this code from the Csound |
Date | 2016-01-26 19:53 |
From | Rory Walsh |
Subject | Re: OSC on Android? |
In the end I had to simply pass the opcode lib in the CsOptions. Now my Android app recognizes the OSC opcodes, but I get nothing no message from my receiver. Has actually tested this stuff on Android? On 26 January 2016 at 16:15, Rory Walsh <rorywalsh@ear.ie> wrote:
|
Date | 2016-01-27 10:43 |
From | Rory Walsh |
Subject | Re: OSC on Android? |
Ok, tested and working. Just not by me, but by another Cabbage user. Seems I should go and learn something about network addresses! On 26 January 2016 at 19:53, Rory Walsh <rorywalsh@ear.ie> wrote:
|
Date | 2016-01-27 16:35 |
From | Steven Yi |
Subject | Re: OSC on Android? |
I think there were reports of using Csound and TouchOSC (I think?) on the same device via OSC. Maybe it's a network issue? (or a network permissions issue on your app?) The Csound app has the INTERNET permission in its manifest: https://github.com/csound/csound/blob/develop/android/CsoundForAndroid/CsoundApplication/src/main/AndroidManifest.xml#L10 On Tue, Jan 26, 2016 at 2:53 PM, Rory Walsh |
Date | 2016-01-27 16:49 |
From | Tarmo Johannes |
Subject | Re: OSC on Android? |
Hi,
I hav used OSC with CsoundApplication (ex CsdPlayer) on android, I don't remember which version and it worked. Have not tried to include oscplugins in a Qt-android build though and very cuirous about hints if you get it working.
greetings, tarmo
On Tuesday 26 January 2016 19:53:03 you wrote: > In the end I had to simply pass the opcode lib in the CsOptions. Now my > Android app recognizes the OSC opcodes, but I get nothing no message from > my receiver. Has actually tested this stuff on Android? > > On 26 January 2016 at 16:15, Rory Walsh <rorywalsh@ear.ie> wrote: > > Nice detective work there Steven! > > > > On 26 January 2016 at 15:55, Steven Yi <stevenyi@gmail.com> wrote: > >> Michael may be better able to assist, but this code from the Csound > >> Android application can be used for reference: > >> > >> > >> https://github.com/csound/csound/blob/develop/android/CsoundForAndroid/Cs > >> oundApplication/src/main/java/com/csounds/Csound6/CsoundAppActivity.java# > >> L595-L616>> > >> On Tue, Jan 26, 2016 at 10:36 AM, Rory Walsh <rorywalsh@ear.ie> wrote: > >> > I'm trying to get OSC working on Android but Csound will not load it. > >> > >> This > >> > >> > is actually the first plugin opcode I've tried using on Android, do I > >> > >> have > >> > >> > to set the opcodedir variable? Right now the lib is there beside all my > >> > other .so files. > >> > Csound mailing list Csound@listserv.heanet.ie > >> > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to > >> > https://github.com/csound/csound/issues Discussions of bugs and > >> > >> features can > >> > >> > be posted here > >> > >> Csound mailing list > >> Csound@listserv.heanet.ie > >> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND > >> Send bugs reports to > >> > >> https://github.com/csound/csound/issues > >> > >> Discussions of bugs and features can be posted here > > Csound mailing list > Csound@listserv.heanet.ie > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND > Send bugs reports to > https://github.com/csound/csound/issues > Discussions of bugs and features can be posted here
|
Date | 2016-01-27 18:10 |
From | Rory Walsh |
Subject | Re: OSC on Android? |
Sorry if I wasn't clear earlier, it is working. I had some issues trying to set the opcodedir. Like Tarmo, I'm writing my app in C++ rather than Java. My first port of call was to call csoundSetGlobalEnv() using a JNI function on the Java side, but this didn't work. In fact, I've never been able to use this method to set OPCODE6DIR on any platforms. Anyhow, the simple solution was to just use the --opcode-lib= command line option to pass the libOSC.so opcode. Works fine. The problems I reported were merely my own. It's now working fine for other Cabbage users, just not me. Could just be my home network. It's pretty flaky anyway. I've no need for OSC, so I'm happy to leave it there. I'll probably include the rest of the plugin opcode using a similar technique. On 27 January 2016 at 16:49, Tarmo Johannes <tarmo.johannes@otsakool.edu.ee> wrote:
|
Date | 2016-01-27 20:57 |
From | Victor Lazzarini |
Subject | Re: OSC on Android? |
Did you try sending and receiving in the same CSD? That would tell you whether it works. Also, maybe there are permissions to be set in the manifest, to access the network.
|
Date | 2016-01-27 21:06 |
From | Victor Lazzarini |
Subject | Re: OSC on Android? |
Looks like you need android.permissions. INTERNET
|
Date | 2016-01-28 02:55 |
From | Brian Redfern |
Subject | Re: OSC on Android? |
I saw one open source example where the author was turning screen input into midi events and then sending those to his synth, I would think you could do the same with osc, capture as osc and then send to your running instrument? On Wed, Jan 27, 2016 at 4:03 PM Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
|
Date | 2016-01-28 08:54 |
From | Rory Walsh |
Subject | Re: OSC on Android? |
If I could I would mark this thread as closed. As I mentioned several posts ago, it is working! I've just not been able to get it to work on my home network. Not a Csound issue. This is now exclusively a Rory issue! On 28 Jan 2016 02:56, "Brian Redfern" <brianwredfern@gmail.com> wrote:
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
|
Date | 2016-06-20 10:40 |
From | Ayush <000000a6f055669a-dmarc-request@LISTSERV.HEANET.IE> |
Subject | Re: OSC on Android? |
HI rory Could you please post a snippet of your code. Where did you set the opcode lib as i am wokring on something similar . I am trying to import fluidopcode and I am also using c++ to develop an android application. Or if you could give me a link to your project where you are setting the opcode lib -- View this message in context: http://csound.1045644.n5.nabble.com/Csnd-OSC-on-Android-tp5746688p5750247.html Sent from the Csound - General mailing list archive at Nabble.com. Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2016-06-20 11:33 |
From | Rory Walsh |
Subject | Re: OSC on Android? |
I simply use something like this in my csd file's CsOptions --opcode-lib=osc.so Or whatever the name of the plugin lib is. If you put the plugin lib into the same dir as the main Csound libs when you create your .apk you should be fine. On 20 June 2016 at 10:40, Ayush <000000a6f055669a-dmarc-request@listserv.heanet.ie> wrote: HI rory |