Csound Csound-dev Csound-tekno Search About

[Csnd] Request help with MIDI keyboard

Date2020-06-21 17:58
FromJohn
Subject[Csnd] Request help with MIDI keyboard
I wanted to test some new code with midi input but my knowledge of
this area is very low.  I have a Korg nano keyboard which should be all
I need.

I am working on GNU/Linux and when I plug the (USB) keyboard I see
that th OS has seen it.  But when I attempt to input to csound nothing
happens.  Following previous suggestions I tried adding an -M999
argument to the call which says

ALSA lib rawmidi.c:286:(snd_rawmidi_open_noupdate) Unknown RawMidi 999
ALSA: error opening MIDI input device: '999'
 *** error opening MIDI in device: -1 (Unknown MIDI error)

but no list of valid devices.  I have tried a number of other
arguments such as -+rtmidi=NULL to no avail.  To add to my confusion
yesterday when I first tried it worked for a sort while and then later
attempts gave nothing, and today this silence has continued.

What should I be incanting?

==John ffitch

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-21 18:18
From"Jeanette C."
SubjectRe: [Csnd] Request help with MIDI keyboard
Jun 21 2020, John has written:
...
> I am working on GNU/Linux and when I plug the (USB) keyboard I see
> that th OS has seen it.
...
Have you tried adding
-Ma
Or you give the full MIDI device:
amidi -l
this will list the devices, you'll find items like
IO  hw:1,0  name of your korg
In csound
-+rtmidi=alsa -M hw:1,0

Strange, I thought Csound had ALSA sequencer support, which might be
easier and more fun for complete MIDI installations. :)

Best wishes and good luck!

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

Make all the clouds disappear
Put all your fears to rest <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-21 18:19
FromGuillermo Senna
SubjectRe: [Csnd] Request help with MIDI keyboard

Hi John,

I tend to use qjacktl for connecting and disconnecting midi devices. But you could do "aconnect -i" inside the terminal, get the client number of your korg and then do "-+rtmidi=alsaseq -M [client number]".

Cheers.

On 21/6/20 13:58, John wrote:
I wanted to test some new code with midi input but my knowledge of
this area is very low.  I have a Korg nano keyboard which should be all
I need.

I am working on GNU/Linux and when I plug the (USB) keyboard I see
that th OS has seen it.  But when I attempt to input to csound nothing
happens.  Following previous suggestions I tried adding an -M999
argument to the call which says

ALSA lib rawmidi.c:286:(snd_rawmidi_open_noupdate) Unknown RawMidi 999
ALSA: error opening MIDI input device: '999'
 *** error opening MIDI in device: -1 (Unknown MIDI error)

but no list of valid devices.  I have tried a number of other
arguments such as -+rtmidi=NULL to no avail.  To add to my confusion
yesterday when I first tried it worked for a sort while and then later
attempts gave nothing, and today this silence has continued.

What should I be incanting?

==John ffitch

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-21 18:54
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Request help with MIDI keyboard
I would think it would appear as hw(0,0)
so  -Mhw(0,0)

amidi -l

should show a list

Prof. Victor Lazzarini
Maynooth University
Ireland

> On 21 Jun 2020, at 18:00, John  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.
> 
> I wanted to test some new code with midi input but my knowledge of
> this area is very low.  I have a Korg nano keyboard which should be all
> I need.
> 
> I am working on GNU/Linux and when I plug the (USB) keyboard I see
> that th OS has seen it.  But when I attempt to input to csound nothing
> happens.  Following previous suggestions I tried adding an -M999
> argument to the call which says
> 
> ALSA lib rawmidi.c:286:(snd_rawmidi_open_noupdate) Unknown RawMidi 999
> ALSA: error opening MIDI input device: '999'
> *** error opening MIDI in device: -1 (Unknown MIDI error)
> 
> but no list of valid devices.  I have tried a number of other
> arguments such as -+rtmidi=NULL to no avail.  To add to my confusion
> yesterday when I first tried it worked for a sort while and then later
> attempts gave nothing, and today this silence has continued.
> 
> What should I be incanting?
> 
> ==John ffitch
> 
> 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%7Cbb86296fd0cc4e99fb5408d816048d2f%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C0%7C637283556091027543&sdata=vfiOoh9%2BzrHNkbYHEIHY5EJNIrKkdhxol1fgtonlJew%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%7Cbb86296fd0cc4e99fb5408d816048d2f%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C0%7C637283556091027543&sdata=lUmE1hYjwYCRSHZc1g6DvMOJ7As9HZVouKKUJnoqiqE%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

Date2020-06-21 20:10
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Request help with MIDI keyboard
by which I mean hw:0,0 of course

Prof. Victor Lazzarini
Maynooth University
Ireland

> On 21 Jun 2020, at 18:55, Victor Lazzarini  wrote:
> 
> I would think it would appear as hw(0,0)
> so  -Mhw(0,0)
> 
> amidi -l
> 
> should show a list
> 
> Prof. Victor Lazzarini
> Maynooth University
> Ireland
> 
>> On 21 Jun 2020, at 18:00, John  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.
>> 
>> I wanted to test some new code with midi input but my knowledge of
>> this area is very low.  I have a Korg nano keyboard which should be all
>> I need.
>> 
>> I am working on GNU/Linux and when I plug the (USB) keyboard I see
>> that th OS has seen it.  But when I attempt to input to csound nothing
>> happens.  Following previous suggestions I tried adding an -M999
>> argument to the call which says
>> 
>> ALSA lib rawmidi.c:286:(snd_rawmidi_open_noupdate) Unknown RawMidi 999
>> ALSA: error opening MIDI input device: '999'
>> *** error opening MIDI in device: -1 (Unknown MIDI error)
>> 
>> but no list of valid devices.  I have tried a number of other
>> arguments such as -+rtmidi=NULL to no avail.  To add to my confusion
>> yesterday when I first tried it worked for a sort while and then later
>> attempts gave nothing, and today this silence has continued.
>> 
>> What should I be incanting?
>> 
>> ==John ffitch
>> 
>> 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%7Cf3349ed2fede4afd316608d8160c40ad%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C0%7C637283589169841751&sdata=dYVsFnGG0EU9YhKdj%2FlHiCeyMRVdzoVmMf63i%2F%2FvTUI%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%7Cf3349ed2fede4afd316608d8160c40ad%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C0%7C637283589169841751&sdata=t0v%2FPNU1edQQ8n7BIUep5O2SvKfEkLLSyfmaljap0UE%3D&reserved=0
>> Discussions of bugs and features can be posted here
> 
> 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%7Cf3349ed2fede4afd316608d8160c40ad%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C0%7C637283589169841751&sdata=dYVsFnGG0EU9YhKdj%2FlHiCeyMRVdzoVmMf63i%2F%2FvTUI%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%7Cf3349ed2fede4afd316608d8160c40ad%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C0%7C637283589169841751&sdata=t0v%2FPNU1edQQ8n7BIUep5O2SvKfEkLLSyfmaljap0UE%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