Csound, Linux, Jack and midi
Date | 2015-11-28 13:54 |
From | brian@LINUXSYNTHS.COM |
Subject | Csound, Linux, Jack and midi |
Hi everyone, I started a thread at linuxmusicians.com about midi connections and Csound (see here) but as I wasn't getting any responses, and as this mailing is probably the best place to ask these kinds of things anyway, I wanted to ask you all (those who are using linux obviously) about Csound (and also Cabbage), Jack and midi connections in general: In general, to use synth plugins I use Jack for audio, and a2jmidid to connect the midi signals. With Csound, I cannot use a2jmidid, as any instrument I run (I use the terminal) gives a "midi channel busy" error if I do. This would seem to mean that, if I want to use Csound instruments at the same time I am using regular plugins, I can't. From this scenario, a few more questions will come pertinent, but one thing at a time. Any help much appreciated! :)
brian |
Date | 2015-11-28 14:03 |
From | Victor Lazzarini |
Subject | Re: Csound, Linux, Jack and midi |
I am not sure what aj2midi is, but Csound has two midi options on Linux alsa midi (raw,alsaseq) and portmidi. Jack midi has not been added to Csound (perhaps it should?) Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland
|
Date | 2015-11-28 14:04 |
From | Hlöðver Sigurðsson |
Subject | Re: Csound, Linux, Jack and midi |
Im not really well experienced with JACK and Cabbage, but in CsoundQT, I would defenitely use RT MIDI module, there you can choose from drivers; alsaraw, alsaseq (I usually use this one) and virtal. Maybe jack too but as I write this I have midi turned off on my jack. In the Output Device (-Q) you should see all available apps that accept midi-in? 2015-11-28 14:54 GMT+01:00 <brian@linuxsynths.com>:
|
Date | 2015-11-28 14:14 |
From | Rory Walsh |
Subject | Re: Csound, Linux, Jack and midi |
My CsOptions usually look like this if I'm running Csound outside of any frontend. If you use a front-end like CsoundQT or Cabbage, they will let you select the MIDI drivers yourself. -+rtaudio=jack -odac -+rtmidi=alsa -Ma On 28 November 2015 at 14:04, Hlöðver Sigurðsson <hlolli@gmail.com> wrote:
|
Date | 2015-11-28 14:42 |
From | Anders Genell |
Subject | Re: Csound, Linux, Jack and midi |
I for one would very much welcome native Jack midi support in csound. I know there are the Jacko opcodes, but doing -+rtmidi=jack would just be that much more simple... Regards, Anders
|
Date | 2015-11-28 15:04 |
From | brian@LINUXSYNTHS.COM |
Subject | Re: Csound, Linux, Jack and midi |
Hi everyone and thanks for the help! :) I'll try doing the -+rtmidi=alsa option and see how it behaves, then I'll post here what I find out. A part of this whole issue is also finding out if I can connect a midi sequencer (ie. NonSequencer, QmidiArp) to the Csound instrument and control it that way. (I know that I can make a score in Csound, but is there a way to modify the score in RT while it's playing?)
brian
On Sat, 28 Nov 2015 14:14:26 +0000, Rory Walsh wrote:
|
Date | 2015-11-28 15:11 |
From | Victor Lazzarini |
Subject | Re: Csound, Linux, Jack and midi |
you should definitely be able to do this with the alsa or alsaseq rtmidi options. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland
|
Date | 2015-11-28 16:07 |
From | Victor Lazzarini |
Subject | Re: Csound, Linux, Jack and midi |
a quick look indicates it might not be too difficult. Create a midi input port and read from it, no major configs required. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland
|
Date | 2015-11-28 16:36 |
From | Michael Gogins |
Subject | Re: Csound, Linux, Jack and midi |
Jack MIDI works with the jacko opcodes. I haven't used them for a while, but I did use them; I sent MIDI to the Aeolus organ and received audio back. Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Sat, Nov 28, 2015 at 9:03 AM, Victor Lazzarini |
Date | 2015-11-28 17:18 |
From | Hlöðver Sigurðsson |
Subject | Re: Csound, Linux, Jack and midi |
Speaking of Aeolus organ, do you know Gogins if there is a way to start the organ from within Csound? 2015-11-28 17:36 GMT+01:00 Michael Gogins <michael.gogins@gmail.com>: Jack MIDI works with the jacko opcodes. |
Date | 2015-11-28 18:23 |
From | Michael Gogins |
Subject | Re: Csound, Linux, Jack and midi |
Attachments | Study.4.lua |
I am attaching the piece to this email. It is written in Lua. I did not start Aelous from within Csound, but I did start Aeolus from within the piece. This was a delicate setup but it did end up working. Note that using Lua and my own Score objects etc. made a lot of things easier. The trickiest part was finding out the names of the Jack ports so that I could connect them up with the Jacko opcodes, and finding the best parameters for actually running the Jack daemon. All this would be possible from within Csound, probably. The final line of Lua code tells the Score object to run Csound. The silencio library is available at https://github.com/gogins/silencio. Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Sat, Nov 28, 2015 at 12:18 PM, Hlöðver Sigurðsson |
Date | 2015-11-28 18:56 |
From | brian@LINUXSYNTHS.COM |
Subject | Re: Csound, Linux, Jack and midi |
Hi Hlöðver, I have the midi driver set to "none" at the moment. I'm not sure if this is the parameter to change. What does it do?
brian
On Sat, 28 Nov 2015 15:04:33 +0100, Hlöðver Sigurðsson wrote:
|
Date | 2015-11-28 18:59 |
From | Victor Lazzarini |
Subject | Re: Csound, Linux, Jack and midi |
you need to set it to alsa or alsaseq. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland
|
Date | 2015-11-28 19:02 |
From | brian@LINUXSYNTHS.COM |
Subject | Re: Csound, Linux, Jack and midi |
I tried setting -+rtmidi=alsa and I can open the instrument (either with or without this option, I experience no problems), but I still do not see it appear in the QJackCtl window, and I still cannot use a2jmidid. I basically don't know where to "see" the Csound instrument connection. I tried setting -+rtmidi=jack and I got the error: "error: -+rtmidi='jack': unknown module"
brian
On Sat, 28 Nov 2015 16:07:47 +0000, Victor Lazzarini wrote:
|
Date | 2015-11-28 19:06 |
From | brian@LINUXSYNTHS.COM |
Subject | Re: Csound, Linux, Jack and midi |
Hi Victor, I tried both alsa raw and alsa seq, both with and without the a2jmidid script. The only way that I can connect midi to the instrument is without a2jmidid and without alsa raw or alsa seq.
brian
On Sat, 28 Nov 2015 18:59:32 +0000, Victor Lazzarini wrote:
|
Date | 2015-11-28 19:31 |
From | Hlöðver Sigurðsson |
Subject | Re: Csound, Linux, Jack and midi |
Thanks Gogins I may use this code shamelessly :) but why do you really need a2jmidid, I remember trying that, it just gave me more headaces than solutions. You can even turn off midi in jack and just bypass it with alsa midi routing. 2015-11-28 20:06 GMT+01:00 <brian@linuxsynths.com>:
|
Date | 2015-11-28 20:00 |
From | Victor Lazzarini |
Subject | Re: Csound, Linux, Jack and midi |
Attachments | None None |
Date | 2015-11-28 20:18 | |
From | brian@LINUXSYNTHS.COM | |
Subject | Re: Csound, Linux, Jack and midi | |
Ok, I'll use alsa for midi. For the -M option, I have -Ma just to be able to use this one synth for now. But in the Jack connections windows, Csound doesn't appear. Regarding the software midi device, I'm not sure what you mean. Is there a specific app for linux that does this? When I ran the modprobe command I got this:
brian
On Sat, 28 Nov 2015 20:00:53 +0000, Victor Lazzarini wrote:
|
Date | 2015-11-28 20:26 | |
From | Forrest Curo | |
Subject | Re: Csound, Linux, Jack and midi | |
You need it to be "sudo modprobe etc". aconnectgui is pretty handy for linux midi connections. >When I ran the modprobe command I got this:
On Sat, Nov 28, 2015 at 12:18 PM, <brian@linuxsynths.com> wrote:
|
Date | 2015-11-28 20:58 |
From | Anders Genell |
Subject | Re: Csound, Linux, Jack and midi |
I tried the Jacko example which crashed on me, but I haven't tried the Jacko opcodes in any other capacity. However, keeping ksmps at 128, which seems to be one of the few that would work, is sometimes a bit limiting, I would think. Perhaps implementing "native" Jack midi would be slightly more versatile? Or is that limitation still there? Regards, Anders > 28 nov. 2015 kl. 17:36 skrev Michael Gogins |
Date | 2015-11-28 21:33 | |
From | brian@LINUXSYNTHS.COM | |
Subject | Re: Csound, Linux, Jack and midi | |
Thanks Forrest! :) I used the sudo modprobe command, and it created 5 raw midi connections. With the Jack Midi driver set to "none," I can see the new midi connections in the Alsa midi window. (The aconnectgui was pretty useless unfortunately. I couldn't cut the connections that I had made!) So, definitely some progress, although Qmidiarp wasn't communicating for some reason, so I still have to find out how to connect a sequencer.. I'll update after more testing..
brian
On Sat, 28 Nov 2015 12:26:28 -0800, Forrest Curo wrote:
|
Date | 2015-11-28 21:47 | |
From | Forrest Curo | |
Subject | Re: Csound, Linux, Jack and midi | |
You click on the icon that's supposed to look like scissors; then you can cut connections. On Sat, Nov 28, 2015 at 1:33 PM, <brian@linuxsynths.com> wrote:
|
Date | 2015-11-28 21:48 | |
From | brian@LINUXSYNTHS.COM | |
Subject | Re: Csound, Linux, Jack and midi | |
I found some info about Jack Midi from the Non-Sequencer Manual, with the following:
I tried using the command line (part in bold above) but I got this error:
I'm not sure I'm on the right track with all this yet though..
brian
On Sat, 28 Nov 2015 22:33:20 +0100, brian@LINUXSYNTHS.COM wrote:
|
Date | 2015-11-28 21:49 | |
From | brian@LINUXSYNTHS.COM | |
Subject | Re: Csound, Linux, Jack and midi | |
Yes, I did that, but the connections didn't get cut: left click, middle click, right click, nothing..
On Sat, 28 Nov 2015 13:47:16 -0800, Forrest Curo wrote:
|
Date | 2015-11-28 22:01 |
From | Anders Genell |
Subject | Re: Csound, Linux, Jack and midi |
I created a ticket just in case. Feel free to close it if consensus is that it is not worthwhile. Regards, Anders
|
Date | 2015-11-28 22:03 | |
From | Forrest Curo | |
Subject | Re: Csound, Linux, Jack and midi | |
If your click on the icon has registered, then left click on the line itself rather than either port... On Sat, Nov 28, 2015 at 1:49 PM, <brian@linuxsynths.com> wrote:
|
Date | 2015-11-29 08:59 | |
From | Victor Lazzarini | |
Subject | Re: Csound, Linux, Jack and midi | |
You can try this: connect your sequencer to one of the rawmidi virtual lines, then try running Csound with -M a . Csound will listen to all inputs. I don't think it will appear in the aconnectgui, because it is not an input device, the virtual midi is. -M hw:n,m will select the exact virmidi device, if you know it. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland
|