From: Hedley R. <he...@he...> - 2005-05-13 07:25:27
|
Hi all. Ok I am pretty much at a loss here... but hopefully someone with a little more linux midi experience can point me in the right direction. The short problem statement: =A0aconnect doesn't appear to connect virmidi ports to Timidity ports. Using gentoo, 2.6.11 kernel. =A0All ALSA drivers and libraries are version= =20 1.0.9. Timidity is version 2.13.2. It is probably worth mentioning that I have loaded the virmidi and intel8x0 cards in different orders (slots) and the same issues appeared. =A0Currently the virmidi device is card 1, and intel8x0 (nforce3) is card 2. only relevant output from dmesg: May 12 16:07:11 hedleytop intel8x0_measure_ac97_clock: measured 49416 usecs May 12 16:07:11 hedleytop intel8x0: clocking to 47439 May 12 16:07:33 hedleytop intel8x0_measure_ac97_clock: measured 49433 usecs May 12 16:07:33 hedleytop intel8x0: clocking to 47456 =2D--------------------------------------------------------------------- I fire up the timidity soft synth: =A0 =A0 =A0 =A0/usr/bin/timidity -iA -B2,8 -Os -EFreverb=3D0 =2D--------------------------------------------------------------------- Listing of cards and devices available: bash-2.05b# cat /proc/asound/devices =A01: =A0 =A0 =A0 : sequencer 11: [0- 3]: raw midi 10: [0- 2]: raw midi =A09: [0- 1]: raw midi =A08: [0- 0]: raw midi =A00: [0- 0]: ctl 33: =A0 =A0 =A0 : timer 50: [1- 2]: digital audio playback 57: [1- 1]: digital audio capture 48: [1- 0]: digital audio playback 56: [1- 0]: digital audio capture =A032: [1- 0]: ctl bash-2.05b# cat /proc/asound/cards 0 [VirMIDI =A0 =A0 =A0 =A0]: VirMIDI - VirMIDI =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Virtual MIDI Card 1 1 [nForce3 =A0 =A0 =A0 =A0]: NFORCE - NVidia nForce3 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 NVidia nForce3 with AD1981B at 0xe0= 002000, irq 11 bash-2.05b# aplay -l **** List of PLAYBACK Hardware Devices **** card 1: nForce3 [NVidia nForce3], device 0: Intel ICH [NVidia nForce3] =A0Subdevices: 1/1 =A0Subdevice #0: subdevice #0 card 1: nForce3 [NVidia nForce3], device 2: Intel ICH - IEC958 [NVidia nForce3 - IEC958] =A0Subdevices: 1/1 =A0Subdevice #0: subdevice #0 =2D--------------------------------------------------------------------- Input ports listed: bash-2.05b# aconnect -i client 0: 'System' [type=3Dkernel] =A0 =A00 'Timer =A0 =A0 =A0 =A0 =A0 ' =A0 =A01 'Announce =A0 =A0 =A0 =A0' client 64: 'Virtual Raw MIDI 0-0' [type=3Dkernel] =A0 =A00 'VirMIDI 0-0 =A0 =A0 ' client 65: 'Virtual Raw MIDI 0-1' [type=3Dkernel] =A0 =A00 'VirMIDI 0-1 =A0 =A0 ' client 66: 'Virtual Raw MIDI 0-2' [type=3Dkernel] =A0 =A00 'VirMIDI 0-2 =A0 =A0 ' client 67: 'Virtual Raw MIDI 0-3' [type=3Dkernel] =A0 =A00 'VirMIDI 0-3 =A0 =A0 ' =2D--------------------------------------------------------------------- Output ports: bash-2.05b# aconnect -o client 64: 'Virtual Raw MIDI 0-0' [type=3Dkernel] =A0 =A00 'VirMIDI 0-0 =A0 =A0 ' client 65: 'Virtual Raw MIDI 0-1' [type=3Dkernel] =A0 =A00 'VirMIDI 0-1 =A0 =A0 ' client 66: 'Virtual Raw MIDI 0-2' [type=3Dkernel] =A0 =A00 'VirMIDI 0-2 =A0 =A0 ' client 67: 'Virtual Raw MIDI 0-3' [type=3Dkernel] =A0 =A00 'VirMIDI 0-3 =A0 =A0 ' client 128: 'TiMidity' [type=3Duser] =A0 =A00 'TiMidity port 0 ' =A0 =A01 'TiMidity port 1 ' =A0 =A02 'TiMidity port 2 ' =A0 =A03 'TiMidity port 3 ' =2D--------------------------------------------------------------------- Playing directly to Timidity works and sounds great. =A0Timidity runs at about 50% processor utilization. aplaymidi -p 128:0 /root/Necromancer.mid Then I try to connect my virtmidi port and play through it. aconnect 64:0 128:0 aplaymidi -p 64:0 /root/Necromancer.mid Doesn't give any errors, appears to play, yet no sound! =A0Timidity only uses about 5% processor this time. =A0Something apparently is happening, but I have no idea what =3D) =A0It appears to behave the same when playing to an unbound/unconnected virmidi port as well ("aplaymidi -p 64:0 /root/Necromancer.mid" - same effect) =2D--------------------------------------------------------------------- my .asoundrc (not sure if this is helpful, as sound pretty much works for most everything else, but could help?) #/etc/asound.conf start: # define the default device pcm.!default { =A0type plug =A0slave.pcm "dmixer" } # define the "dsp0" device pcm.dsp0 { =A0type plug =A0slave.pcm "dmixer" } # define the slave pcm dmixer device pcm.dmixer { =A0type dmix =A0ipc_key 1024 =A0slave { =A0 =A0 =A0 =A0pcm "hw:1,0" =A0 =A0 =A0 =A0period_time 0 =A0 =A0 =A0 =A0period_size 1024 =A0 =A0 =A0 =A0buffer_size 8192 =A0 =A0 =A0 =A0rate 44100 =A0} =A0bindings { =A0 =A0 =A0 =A00 0 =A0 =A0 =A0 =A01 1 =A0} } # define the "dsnooped" device for capturing pcm.dsnooped { =A0 =A0 =A0 =A0type dsnoop =A0 =A0 =A0 =A0ipc_key 1024 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0slave { =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0pcm "hw:1,0" =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0period_time 0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0period_size 1024 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0buffer_size 8192 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0rate 44100 =A0 =A0 =A0 =A0} } # define the "duplex" device for full duplex operations pcm.duplex { =A0type asym =A0playback.pcm "dmixer" =A0capture.pcm "dsnooped" } # define the "dsp1" device and slave "duplex" for full duplex operations pcm.dsp1 { =A0 =A0type plug =A0 =A0slave.pcm "duplex" } # define the "dmixer" control device ctl.dmixer { =A0type hw =A0card 1 =A0} # define the "dsp2" for folks who don't want to play friendly with dmix pcm.dsp2 { type hw card 0 } #end. Thanks for any help you can provide. Hedley |