[Csnd] Csound for Android and MIDI Out

I’ve had success with Csound on computers getting MIDI out with the -Q0 flag. No joy however with Csound for Android - both on Android phones and Chromebooks.

Can anyone tell me whether it’s possible or not, and if so, the necessary equipment and flags?

I want to stay with the Csound for Android app and not get into Linux or virtual setups. I also need a straightforward solution - one the average person (as in “a potential performer”) could understand and implement. I’m assuming USB (OTG?) out.

Suggestions, please - and TIA.

Art H.
Csound mailing list Send bugs reports to Discussions of bugs and features can be posted here

Victor (et al.),

I gather that you are saying that the Android OS has no MIDI implementation, not that (only) the Csound for Android app doesn’t include MIDI implementation.

The reason for the little hope I had: I’ve an old Nexus 6 with Android 7.1.1. When I connect it to my computer to charge, it shows me USB options, which include a “Use this device as MIDI” alternative. After selection, it indicated that the “android system” was now doihg “USB for MIDI.”

I opened Csound for Android on the Nexus, and MIDIOx on my computer. MIDIOx recognized the Nexus as MIDI input. However, running a .csd with -Q0, conveys no output, and my .csd can’t open/find a MIDI out device (unknown MIDI error).

So, am I still “dead in the water”?

Art H.
Csound mailing list Send bugs reports to Discussions of bugs and features can be posted here

yes, I meant Csound has no MIDI IO on Android.

Prof. Victor Lazzarini
Maynooth University
Ireland

Mike -

Thanks for doing this deep dive into Csound for Android and MIDI. Very informative; I’ll be following possible developments with great interest.

My current use cases all involve basic USB MIDI (connection via USB OTG cable), and MIDI-controlled carillons. I’d like to have both Android smartphones and Chromebooks running autoplay .csd’s that send noteons to a carillon; also, Chromebooks/Csound - via sensekey - manually playing a carillon (also via noteons). FWIW, I’ve already completed the .csd’s .

I really appreciate your attention and interest in the Android side of Csound, and very much hope that one of our developers will rise to help out with this challenge.

Art H.
Csound mailing list Send bugs reports to Discussions of bugs and features can be posted here

I’ve pushed a couple of PRs today, implementing native MIDI on Android and also adding AAudio audio IO (as an option to OpenSL).
I can’t test MIDI as I don’t have a device. It needs to be hooked up in an Android App, but the support is there - untested.
AAudio was tested and it works.