[LAU] can't get virmidi to work with 11.04 Natty

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-user@...>
Date: Monday, September 5, 2011 - 5:14 pm

--00163683196a21f2dd04ac34d6cf
Content-Type: text/plain; charset=ISO-8859-1

I had virmidi working fine with 10.4 Lucid but since updating to 11.04 Natty
I cannot make it work.

I have followed the HOWTO [url]
http://tldp.org/HOWTO/MIDI-HOWTO-10.html[/url] which is the best and about
the only reference I can find. It's out of date but I've done my best with
it.

I have installed the standard 11.04 installation as an update from 10.04 -
generally everything is fine, just this one problem.

My installation includes:-

paman - Pulse Audio Manager
pulseaudio
pulseaudio-module-jack
qjackctl
jackd1 (I can't get jackd2 to work)
aconnectgui - midi router
vmpk - virtual midi piano keyboard
timidity - midi synthesizer

Here's what I've done:-

[CODE]/etc/modules

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

lp
snd-virmidi index=1[/CODE]

virmidi seems to load fine

[QUOTE]tony@ubuntu:~$ lsmod|grep virmidi
snd_virmidi 13064 0
snd_seq_virmidi 13309 1 snd_virmidi
snd_rawmidi 25269 2 snd_seq_virmidi,snd_seq_midi
snd_seq_midi_event 14475 2 snd_seq_virmidi,snd_seq_midi
snd_seq 51291 8
snd_seq_dummy,snd_seq_virmidi,snd_seq_midi,snd_seq_midi_event
snd 55295 19
snd_intel8x0,snd_ac97_codec,snd_pcm,snd_virmidi,snd_seq_virmidi,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
tony@ubuntu:~$[/QUOTE]

I put these lines in /etc/modprobe.d/alsa-base.conf

[CODE] # mods for virmidi
# Configure support for OSS /dev/sequencer and
# /dev/music (aka /dev/sequencer2)
# (Takashi Iwai advises that it is unnecessary
# to alias these services beyond the first card, i.e., card 0)
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-8 snd-seq-oss

# Configure card 1 (second card) as a virtual MIDI card
alias sound-slot-1 snd-card-1
alias snd-card-1 snd-virmidi[/CODE]

the sound stopped working altogether so I took them out again.

I've checked

[QUOTE]tony@ubuntu:~$ cat /proc/asound/cards
0 [ICH6 ]: ICH4 - Intel ICH6
Intel ICH6 with AD1981B at irq 21
1 [VirMIDI ]: VirMIDI - VirMIDI
Virtual MIDI Card 1
tony@ubuntu:~$[/QUOTE]

[QUOTE]tony@ubuntu:~$ cat /proc/asound/devices
1: : sequencer
2: [ 1- 3]: raw midi
3: [ 1- 2]: raw midi
4: [ 1- 1]: raw midi
5: [ 1- 0]: raw midi
6: [ 1] : control
7: [ 0- 4]: digital audio playback
8: [ 0- 3]: digital audio capture
9: [ 0- 2]: digital audio capture
10: [ 0- 1]: digital audio capture
11: [ 0- 0]: digital audio playback
12: [ 0- 0]: digital audio capture
13: [ 0] : control
33: : timer
tony@ubuntu:~$[/QUOTE]

[QUOTE]tony@ubuntu:~$ aconnect -o
client 14: 'Midi Through' [type=kernel]
0 'Midi Through Port-0'
client 20: 'Virtual Raw MIDI 1-0' [type=kernel]
0 'VirMIDI 1-0 '
client 21: 'Virtual Raw MIDI 1-1' [type=kernel]
0 'VirMIDI 1-1 '
client 22: 'Virtual Raw MIDI 1-2' [type=kernel]
0 'VirMIDI 1-2 '
client 23: 'Virtual Raw MIDI 1-3' [type=kernel]
0 'VirMIDI 1-3 '
client 129: 'TiMidity' [type=user]
0 'TiMidity port 0 '
1 'TiMidity port 1 '
2 'TiMidity port 2 '
3 'TiMidity port 3 '
tony@ubuntu:~$[/QUOTE]

[QUOTE]tony@ubuntu:~$ aconnect -i
client 0: 'System' [type=kernel]
0 'Timer '
1 'Announce '
client 14: 'Midi Through' [type=kernel]
0 'Midi Through Port-0'
client 20: 'Virtual Raw MIDI 1-0' [type=kernel]
0 'VirMIDI 1-0 '
client 21: 'Virtual Raw MIDI 1-1' [type=kernel]
0 'VirMIDI 1-1 '
client 22: 'Virtual Raw MIDI 1-2' [type=kernel]
0 'VirMIDI 1-2 '
client 23: 'Virtual Raw MIDI 1-3' [type=kernel]
0 'VirMIDI 1-3 '
tony@ubuntu:~$
[/QUOTE]
Everything is as per the HOWTO.

HOWTO says

[QUOTE] $ ln -s /dev/snd/midiC2D0 /dev/midi20
$ ln -s /dev/snd/midiC2D1 /dev/midi21
[...]

but this should not be necessary, so don't do this at home, kids![/QUOTE]

I can't find an install of for aseqview anywhere and don't know if it would
be useful if I did.

I can use either qjackctl or aconnectgui to make the virtual patches.

I test thus:-

1. start timidity
2. launch vmpk virtual keyboard
3. edit connections in vmpk to send output to a timidity port
4. play the keyboard and I can hear the piano

5. edit connections in vmpk to send output to virmidi port
6. change the connections in aconnectgui
[IMG]
http://www.wikiwhatever.com/aconnectgui-1.jpg[/IMG][IMG]http://www.wikiwhatever.com/aconnectgui-3.jpg[/IMG]
7. play the keyboard and there is no sound
8. conclusion: virmidi is not working.

If anyone can shed any light on this I would be grateful.

Tony

--00163683196a21f2dd04ac34d6cf
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I had virmidi working fine with 10.4 Lucid but since updating to 11.04 Natt=
y I cannot make it work.I have followed the HOWTO [url]http:/=
/tldp.org/HOWTO/MIDI-HOWTO-10.html[/url]
which is the best and about th=
e only reference I can find.=A0 It's out of date but I've done my b=
est with it.

I have installed the standard 11.04 installation as an update from 10.0=
4 - generally everything is fine, just this one problem.My installa=
tion includes:-paman - Pulse Audio Managerpulseaudiopulseau=
dio-module-jack

qjackctljackd1 (I can't get jackd2 to work)aconnectgui - midi r=
outervmpk - virtual midi piano keyboardtimidity - midi synthesizer<=
br>Here's what I've done:-[CODE]/etc/modules

# /etc/modules: kernel modules to load at boot time.## This file co=
ntains the names of kernel modules that should be loaded# at boot time,=
one per line. Lines beginning with "#" are ignored.
lp
snd-virmidi index=3D1[/CODE]virmidi seems to load fine[QUOT=
E]tony@ubuntu:~$ lsmod|grep virmidisnd_virmidi=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0 13064=A0 0snd_seq_virmidi=A0=A0=A0=A0=A0=A0=A0 13309=A0 1 snd=
_virmidisnd_rawmidi=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 25269=A0 2 snd_seq=
_virmidi,snd_seq_midi

snd_seq_midi_event=A0=A0=A0=A0 14475=A0 2 snd_seq_virmidi,snd_seq_midis=
nd_seq=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 51291=A0 8 snd_seq_dumm=
y,snd_seq_virmidi,snd_seq_midi,snd_seq_midi_eventsnd=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 55295=A0 19 snd_intel8x0,snd_ac97_c=
odec,snd_pcm,snd_virmidi,snd_seq_virmidi,snd_rawmidi,snd_seq,snd_timer,snd_=
seq_device

tony@ubuntu:~$[/QUOTE]I put these lines in /etc/modprobe.d/alsa-bas=
e.conf[CODE] # mods for virmidi=A0# Configure support for OSS /=
dev/sequencer and=A0# /dev/music (aka /dev/sequencer2)=A0# (Takashi=
Iwai advises that it is unnecessary

=A0# to alias these services beyond the first card, i.e., card 0)alias =
sound-service-0-1 snd-seq-ossalias sound-service-0-8 snd-seq-oss=A0# Configure card 1 (second card) as a virtual MIDI cardalias sound-=
slot-1 snd-card-1

alias snd-card-1 snd-virmidi[/CODE]the sound stopped working altoge=
ther so I took them out again.I've checked[QUOTE]tony@u=
buntu:~$ cat /proc/asound/cards=A00 [ICH6=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
]: ICH4 - Intel ICH6

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Intel ICH6 =
with AD1981B at irq 21=A01 [VirMIDI=A0=A0=A0=A0=A0=A0=A0 ]: VirMIDI - V=
irMIDI=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 V=
irtual MIDI Card 1tony@ubuntu:~$[/QUOTE][QUOTE]tony@ubuntu:~$ c=
at /proc/asound/devices

=A0 1:=A0=A0=A0=A0=A0=A0=A0 : sequencer=A0 2: [ 1- 3]: raw midi=A0 =
3: [ 1- 2]: raw midi=A0 4: [ 1- 1]: raw midi=A0 5: [ 1- 0]: raw mid=
i=A0 6: [ 1]=A0=A0 : control=A0 7: [ 0- 4]: digital audio playback<=
br>=A0 8: [ 0- 3]: digital audio capture

=A0 9: [ 0- 2]: digital audio capture=A010: [ 0- 1]: digital audio capt=
ure=A011: [ 0- 0]: digital audio playback=A012: [ 0- 0]: digital au=
dio capture=A013: [ 0]=A0=A0 : control=A033:=A0=A0=A0=A0=A0=A0=A0 :=
timertony@ubuntu:~$[/QUOTE]

[QUOTE]tony@ubuntu:~$ aconnect -oclient 14: 'Midi Through' =
[type=3Dkernel]=A0=A0=A0 0 'Midi Through Port-0'client 20: =
'Virtual Raw MIDI 1-0' [type=3Dkernel]=A0=A0=A0 0 'VirMIDI =
1-0=A0=A0=A0=A0 '

client 21: 'Virtual Raw MIDI 1-1' [type=3Dkernel]=A0=A0=A0 0 &#=
39;VirMIDI 1-1=A0=A0=A0=A0 'client 22: 'Virtual Raw MIDI 1-2&#3=
9; [type=3Dkernel]=A0=A0=A0 0 'VirMIDI 1-2=A0=A0=A0=A0 'cli=
ent 23: 'Virtual Raw MIDI 1-3' [type=3Dkernel]

=A0=A0=A0 0 'VirMIDI 1-3=A0=A0=A0=A0 'client 129: 'TiMidity=
' [type=3Duser]=A0=A0=A0 0 'TiMidity port 0 '=A0=A0=A0 =
1 'TiMidity port 1 '=A0=A0=A0 2 'TiMidity port 2 '=
=A0=A0=A0 3 'TiMidity port 3 '

tony@ubuntu:~$[/QUOTE][QUOTE]tony@ubuntu:~$ aconnect -iclient 0=
: 'System' [type=3Dkernel]=A0=A0=A0 0 'Timer=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0 '=A0=A0=A0 1 'Announce=A0=A0=A0=A0=A0=A0=A0 &#3=
9;client 14: 'Midi Through' [type=3Dkernel]

=A0=A0=A0 0 'Midi Through Port-0'client 20: 'Virtual Raw MI=
DI 1-0' [type=3Dkernel]=A0=A0=A0 0 'VirMIDI 1-0=A0=A0=A0=A0 &#3=
9;client 21: 'Virtual Raw MIDI 1-1' [type=3Dkernel]=A0=A0=
=A0 0 'VirMIDI 1-1=A0=A0=A0=A0 '

client 22: 'Virtual Raw MIDI 1-2' [type=3Dkernel]=A0=A0=A0 0 &#=
39;VirMIDI 1-2=A0=A0=A0=A0 'client 23: 'Virtual Raw MIDI 1-3&#3=
9; [type=3Dkernel]=A0=A0=A0 0 'VirMIDI 1-3=A0=A0=A0=A0 'ton=
y@ubuntu:~$[/QUOTE]
Everything is as per the HOWTO.
HOWTO says[QUOTE] $ ln -s /dev/snd/midiC2D0 /dev/midi20=A0$=
ln -s /dev/snd/midiC2D1 /dev/midi21=A0[...]but this should not=
be necessary, so don't do this at home, kids![/QUOTE] I can&#3=
9;t find an install of for aseqview anywhere and don't know if it would=
be useful if I did.

I can use either qjackctl or aconnectgui to make the virtual patches.I test thus:-1. start timidity2. launch vmpk virtual keyb=
oard3. edit connections in vmpk to send output to a timidity port

4. play the keyboard and I can hear the piano5. edit connections in=
vmpk to send output to virmidi port6. change the connections in aconne=
ctgui[IMG]http://www.wikiwhatever.com/aconnectgui-1.jpg[/IMG][IMG]http:=
//www.wikiwhatever.com/aconnectgui-3.jpg[/IMG]

7. play the keyboard and there is no sound8. conclusion: virmidi is not=
working.If anyone can shed any light on this I would be grateful.<=
br>Tony

--00163683196a21f2dd04ac34d6cf--

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAU] can't get virmidi to work with 11.04 Natty, Tony Austin, (Mon Sep 5, 5:14 pm)
Re: [LAU] can't get virmidi to work with 11.04 Natty, Clemens Ladisch, (Tue Sep 6, 7:52 am)