[Csnd] Csound for Android and MIDI Out
Date | 2025-07-19 00:22 |
From | Arthur Hunkins <000001e1d761dea2-dmarc-request@LISTSERV.HEANET.IE> |
Subject | [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.
abhunkin@uncg.edu
http://www.arthunkins.com
|
Date | 2025-07-19 00:28 |
From | vlz |
Subject | Re: [Csnd] Csound for Android and MIDI Out |
There is no MIDI implementation on Android, so it's not possible. Prof. Victor Lazzarini Maynooth University Ireland On 19 Jul 2025, at 00:22, Arthur Hunkins <000001e1d761dea2-dmarc-request@listserv.heanet.ie> wrote:
|
Date | 2025-07-19 01:02 |
From | "Brian R." |
Subject | Re: [Csnd] Csound for Android and MIDI Out |
You would need to use the csound wasm version in your android chrome browser to do that, the native sdk has no midi support, but the wasm version uses webmidi in the browser. On Fri, Jul 18, 2025 at 4:22 PM Arthur Hunkins <000001e1d761dea2-dmarc-request@listserv.heanet.ie> wrote:
|
Date | 2025-07-19 01:14 |
From | thorin kerr |
Subject | Re: [Csnd] Csound for Android and MIDI Out |
I think the TouchOSC app can convert OSC to midi messages, and I think csound can send OSC on Android. Would need some testing. On Sat, 19 July 2025, 10:03 am Brian R., <brianwredfern@gmail.com> wrote:
|
Date | 2025-07-19 03:25 |
From | Arthur Hunkins <000001e1d761dea2-dmarc-request@LISTSERV.HEANET.IE> |
Subject | Re: [Csnd] Csound for Android and MIDI Out |
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.
abhunkin@uncg.edu
http://www.arthunkins.com
From: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> on behalf of vlz <viclazzarini@GMAIL.COM>
Sent: Friday, July 18, 2025 7:28 PM To: CSOUND@LISTSERV.HEANET.IE <CSOUND@LISTSERV.HEANET.IE> Subject: Re: [Csnd] Csound for Android and MIDI Out There is no MIDI implementation on Android, so it's not possible.
Prof. Victor Lazzarini
Maynooth University
Ireland
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 | 2025-07-19 07:18 |
From | Victor Lazzarini <000010b17ddd988e-dmarc-request@LISTSERV.HEANET.IE> |
Subject | Re: [Csnd] Csound for Android and MIDI Out |
yes, I meant Csound has no MIDI IO on Android.
Prof. Victor Lazzarini
Maynooth University
Ireland
On 19 Jul 2025, at 03:25, Arthur Hunkins <000001e1d761dea2-dmarc-request@listserv.heanet.ie> wrote:
|
Date | 2025-07-19 15:05 |
From | Forrest Curo |
Subject | Re: [Csnd] Csound for Android and MIDI Out |
There's supposed to be a sort of pd app-oid for android phones... Would that work as an interface? (Because of a faulty usb-midi device, I use pd to filter input from my keyboard into my pc. and that's pretty fast.) Forrest On Fri, Jul 18, 2025 at 11:18 PM Victor Lazzarini <000010b17ddd988e-dmarc-request@listserv.heanet.ie> wrote:
|
Date | 2025-07-19 15:13 |
From | Michael Gogins |
Subject | Re: [Csnd] Csound for Android and MIDI Out |
The Android operating system has had MIDI support since Android 6. The Csound for Android app that I maintain is implemented using the CsoundAndroid library, which in turn uses Google's Oboe driver, which does support MIDI. When I run the Csound app on my Galaxy S24 Ultra phone, it lists 0 input devices and 0 output devices for MIDI. When I hook my Focusrite Scarlett 2i4 USB audio/MIDI interface to my phone, it still shows 0 input devices and 0 output devices for MIDI, even though audio is routed through the interface. I installed the MIDI Keyboard and MIDI Synth Ex apps from the Google Play store, and verified that playing the keyboard would send MIDI to the synth that I could hear through the Scarlett. So my phone definitely supports MIDI. I read through the code to see if the Android MIDI driver is being hooked up for the Csound for Android app. The app currently requests no permissions either for MIDI on USB or MIDI on Bluetooth. I tried running the MIDI Keyboard at the same time as my Csound for Android app test orchestra, as that creates a virtual interface, but the MIDI Keyboard did not list Csound as an input, and Csound still showed 0 inputs and 0 outputs for MIDI. I read through the code some more. The CsoundAndroid library used by the Csound for Android app implements at least the lower half of MIDI input and output drivers. However, these lower half functions are not called by the Csound for Android app. The conclusion is that the Csound for Android app does not currently support MIDI, but the infrastructure for implementing such MIDI support certainly exists. I have entered an issue to support MIDI in the Csound for Android app (https://github.com/gogins/csound-android/issues/36) . I don't have a lot of time, and I would appreciate somebody stepping up to take on this issue, or at least to help me with it. Regards, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Sat, Jul 19, 2025 at 2:18 AM Victor Lazzarini <000010b17ddd988e-dmarc-request@listserv.heanet.ie> wrote:
|
Date | 2025-07-19 16:35 |
From | Arthur Hunkins <000001e1d761dea2-dmarc-request@LISTSERV.HEANET.IE> |
Subject | Re: [Csnd] Csound for Android and MIDI Out |
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.
abhunkin@uncg.edu
http://www.arthunkins.com
From: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> on behalf of Michael Gogins <michael.gogins@GMAIL.COM>
Sent: Saturday, July 19, 2025 10:13 AM To: CSOUND@LISTSERV.HEANET.IE <CSOUND@LISTSERV.HEANET.IE> Subject: Re: [Csnd] Csound for Android and MIDI Out The Android operating system has had MIDI support since Android 6.
The Csound for Android app that I maintain is implemented using the CsoundAndroid library, which in turn uses Google's Oboe driver, which does support MIDI.
When I run the Csound app on my Galaxy S24 Ultra phone, it lists 0 input devices and 0 output devices for MIDI. When I hook my Focusrite Scarlett 2i4 USB audio/MIDI interface to my phone, it still shows 0 input devices and 0 output devices for MIDI, even
though audio is routed through the interface. I installed the MIDI Keyboard and MIDI Synth Ex apps from the Google Play store, and verified that playing the keyboard would send MIDI to the synth that I could hear through the Scarlett. So my phone definitely
supports MIDI.
I read through the code to see if the Android MIDI driver is being hooked up for the Csound for Android app. The app currently requests no permissions either for MIDI on USB or MIDI on Bluetooth. I tried running the MIDI Keyboard at the same time as my
Csound for Android app test orchestra, as that creates a virtual interface, but the MIDI Keyboard did not list Csound as an input, and Csound still showed 0 inputs and 0 outputs for MIDI.
I read through the code some more. The CsoundAndroid library used by the Csound for Android app implements at least the lower half of MIDI input and output drivers. However, these lower half functions are not called by the Csound for Android app.
The conclusion is that the Csound for Android app does not currently support MIDI, but the infrastructure for implementing such MIDI support certainly exists.
I have entered an issue to support MIDI in the Csound for Android app (https://github.com/gogins/csound-android/issues/36) . I don't have a lot of time, and I would appreciate somebody stepping
up to take on this issue, or at least to help me with it.
Regards,
Mike
-----------------------------------------------------
Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Sat, Jul 19, 2025 at 2:18 AM Victor Lazzarini <000010b17ddd988e-dmarc-request@listserv.heanet.ie> wrote:
|
Date | 2025-07-19 17:29 |
From | Victor Lazzarini <000010b17ddd988e-dmarc-request@LISTSERV.HEANET.IE> |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Csound for Android and MIDI Out |
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. ======================== Prof. Victor Lazzarini Maynooth University Ireland > On 19 Jul 2025, at 03:25, Arthur Hunkins <000001e1d761dea2-dmarc-request@LISTSERV.HEANET.IE> wrote: > > P {margin-top:0;margin-bottom:0;} *Warning* > This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe. > 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. > > abhunkin@uncg.edu > http://www.arthunkins.com > > From: A discussion list for users of Csound |