Csound Csound-dev Csound-tekno Search About

[Csnd] Multiple Simultaneous MIDI Controllers in Linux Csound - on Bela or RaspberryPi

Date2020-06-26 04:49
From"Dr. Richard Boulanger"
Subject[Csnd] Multiple Simultaneous MIDI Controllers in Linux Csound - on Bela or RaspberryPi
On CsoundQt on the Mac, I can successfully connect a number of MIDI controllers (into a USB Hub for instance) and chose:

Csound MIDI Module "portmidi" 
Input Device:  a. (for all) 

And I can simultaneously play on my Novation LaunchKey MINI MKIII and my Korg NanoKontrol

====

I have plugged the same USB Hub and MIDI Controller Keyboards into my Bela Mini

Typically, for my MIDI .csd files I use the following command-line options:

-Mhw:1,0,0 -+rtmidi=NULL --daemon

And control my .csd files from a single controller

BUT...

My students and I are wanting to use multiple controllers on the Bela
- I am hoping that some of you (who use the Bela or run Csound on a Pi or Linux) might have a solution to suggest

I have run the command "amidi -l" from the Bela console
My Bela tells me that I have the following MIDI devices installed:

Dir Device Name
IO hw:0,0,0 Launchkey Mini MK3 MIDI 1
IO hw:0,0,1 Launchkey Mini MK3 MIDI 2
IO hw:1,0,0 nanoKONTROL MIDI 1
IO hw:2,0 f_midi

It does allow me to choose and set and use one of the "other" MIDI controllers plugged into the USB Hub, but it does not allow me to us two or more at the same time.

It will not allow the -Ma command-line flag (as I think that this only works with portmidi and I think that this is alsaMIDI (?)

It will not allow me to string together both devices in the command-line

-Mhw:1,0,0  -Mhw:0,0,0. (it uses the latter one)

Is there a MIDI MERGE command-line option/flag in Csound (I guess that -Ma is such a flag, but... not on the Bela.

Is there a way of getting my Bela to listen to more that one controller at the same time?

Thanks for your advice.

-dB




Dr. Richard Boulanger

Professor of Electronic Production and Design

Professional Writing and Technology Division

Berklee College of Music


skype: radiobaton 

facebook: https://www.facebook.com/richard.boulanger.58

about: http://www.boulangerlabs.com/#about

about: http://www.csounds.com/community/developers/dr-richard-boulanger/

music: http://www.csounds.com/community/developers/dr-richard-boulanger/dr-richard-boulanger-music/


Boulanger Labs - http://boulangerlabs.com

The Csound Book http://mitpress.mit.edu/books/csound-book

The Audio Programming Book - http://mitpress.mit.edu/books/audio-programming-book

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

Date2020-06-26 07:13
From"Jeanette C."
SubjectRe: [Csnd] Multiple Simultaneous MIDI Controllers in Linux Csound - on Bela or RaspberryPi
Jun 26 2020, Dr. Richard Boulanger has written:
...
> I have plugged the same USB Hub and MIDI Controller Keyboards into my Bela
> Mini
>
> Typically, for my MIDI .csd files I use the following command-line options:
>
> -Mhw:1,0,0 -+rtmidi=NULL --daemon
...
Have you tried:
-+rtmidi=alsa -Ma

I have tried it here on Linux with the keyboards connected to my USB hub
and Csound will accept MIDI from several inputs.

Best wishes,

Jeanette

-- 
  * Website: http://juliencoder.de - for summer is a state of sound
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * SoundCloud: https://soundcloud.com/jeanette_c
  * Twitter: https://twitter.com/jeanette_c_s
  * Audiobombs: https://www.audiobombs.com/users/jeanette_c
  * GitHub: https://github.com/jeanette-c

you made me realize..not to compromise
the fact that you and i should meet... <3
(Britney Spears)

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

Date2020-06-26 11:44
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Multiple Simultaneous MIDI Controllers in Linux Csound - on Bela or RaspberryPi
In Bela, MIDI is handled by Bela, not the Csound ALSA module. So it is whatever Bela gives you.
It is different from straight Linux on raspberry PI or other platforms.

Also noting that with portmidi, it is also possible to use -Mm for multiport mapping

https://csound.com/docs/manual/CommandFlagsCategory.html#FlagsCatMinusUpperM

======================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 26 Jun 2020, at 07:13, Jeanette C.  wrote:
> 
> *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.
> 
> Jun 26 2020, Dr. Richard Boulanger has written:
> ...
>> I have plugged the same USB Hub and MIDI Controller Keyboards into my Bela
>> Mini
>> 
>> Typically, for my MIDI .csd files I use the following command-line options:
>> 
>> -Mhw:1,0,0 -+rtmidi=NULL --daemon
> ...
> Have you tried:
> -+rtmidi=alsa -Ma
> 
> I have tried it here on Linux with the keyboards connected to my USB hub
> and Csound will accept MIDI from several inputs.
> 
> Best wishes,
> 
> Jeanette
> 
> --
> * Website: https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fjuliencoder.de%2F&data=02%7C01%7CVictor.Lazzarini%40mu.ie%7C754f7d9a2b6e49940db608d8199801f4%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C1%7C637287487946136697&sdata=w9Av45Ugn9JKewpqwwGsSBO7iUyjBm8jYUDbDrFwoHw%3D&reserved=0 - for summer is a state of sound
> * Youtube: https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.youtube.com%2Fchannel%2FUCMS4rfGrTwz8W7jhC1Jnv7g&data=02%7C01%7CVictor.Lazzarini%40mu.ie%7C754f7d9a2b6e49940db608d8199801f4%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C1%7C637287487946136697&sdata=Fkiq4Io97dCLS%2FfJmg3Qmhn6IdmEegpOqDo7vJ2LQMY%3D&reserved=0
> * SoundCloud: https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsoundcloud.com%2Fjeanette_c&data=02%7C01%7CVictor.Lazzarini%40mu.ie%7C754f7d9a2b6e49940db608d8199801f4%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C1%7C637287487946136697&sdata=NZDBnK2I5NLP6VI48hK4Qf6wtVtGy10qgoFyZQRMZ%2F8%3D&reserved=0
> * Twitter: https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2Fjeanette_c_s&data=02%7C01%7CVictor.Lazzarini%40mu.ie%7C754f7d9a2b6e49940db608d8199801f4%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C1%7C637287487946136697&sdata=RQcWx3ql2dcVkG%2FF2vApsYbSiXjoOux90oQT58FjouI%3D&reserved=0
> * Audiobombs: https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.audiobombs.com%2Fusers%2Fjeanette_c&data=02%7C01%7CVictor.Lazzarini%40mu.ie%7C754f7d9a2b6e49940db608d8199801f4%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C1%7C637287487946136697&sdata=RNvVg0RrS7eDTaZ5u%2FDoYhbtreNPOScmz3xSgTmVMPA%3D&reserved=0
> * GitHub: https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjeanette-c&data=02%7C01%7CVictor.Lazzarini%40mu.ie%7C754f7d9a2b6e49940db608d8199801f4%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C1%7C637287487946136697&sdata=KbFoQTEGuuCpG%2BpxDw%2FuqJAN5HobGqrUky2tcnVS%2B5c%3D&reserved=0
> 
> you made me realize..not to compromise
> the fact that you and i should meet... <3
> (Britney Spears)
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=02%7C01%7CVictor.Lazzarini%40mu.ie%7C754f7d9a2b6e49940db608d8199801f4%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C1%7C637287487946146688&sdata=tbkgJOIstW6jIs9tRTKM%2B5HoQq9e456d8Bz5u2F2Fb8%3D&reserved=0
> Send bugs reports to
>       https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=02%7C01%7CVictor.Lazzarini%40mu.ie%7C754f7d9a2b6e49940db608d8199801f4%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C1%7C637287487946146688&sdata=45UDael2OrkxeC%2Bqc01AGAsAbsl4LBdPfnBoQ%2Fzvg1I%3D&reserved=0
> 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