List Info

Thread: snd-virmidi loads, but doesn't pass data




snd-virmidi loads, but doesn't pass data
user name
2007-04-07 03:30:29
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have the snd-virmidi module loaded. The virmidi devices
show up in aconnect -lio, just fine. I can connect devices
to them. 

But, no data actually gets passed through!

$ sudo modprobe snd-virmidi

$ aconnect -lio
client 0: 'System' [type=kernel]
    0 'Timer           '
    1 'Announce        '
	Connecting To: 15:0, 132:0
client 14: 'Midi Through' [type=kernel]
    0 'Midi Through Port-0'
client 20: 'Keystation Pro 88' [type=kernel]
    0 'Keystation Pro 88 MIDI 1'
    1 'Keystation Pro 88 MIDI 2'
client 24: 'Virtual Raw MIDI 2-0' [type=kernel]
    0 'VirMIDI 2-0     '
client 25: 'Virtual Raw MIDI 2-1' [type=kernel]
    0 'VirMIDI 2-1     '
client 26: 'Virtual Raw MIDI 2-2' [type=kernel]
    0 'VirMIDI 2-2     '
client 27: 'Virtual Raw MIDI 2-3' [type=kernel]
    0 'VirMIDI 2-3     '
client 128: 'FreeBoB Jack MIDI' [type=user]
    0 'dev1c_MidiPort_1'
    1 'dev1p_MidiPort_1'
client 129: 'FLUID Synth (fretless)' [type=user]
    0 'Synth input port (fretless:0)'
client 130: 'FLUID Synth (piano)' [type=user]
    0 'Synth input port (piano:0)'
client 131: 'FLUID Synth (rhodes)' [type=user]
    0 'Synth input port (rhodes:0)'


$  aconnect 128:0 24:0
$ aconnect 24:0 130:0


$ aconnect -lio
client 0: 'System' [type=kernel]
    0 'Timer           '
    1 'Announce        '
	Connecting To: 15:0, 132:0
client 14: 'Midi Through' [type=kernel]
    0 'Midi Through Port-0'
client 20: 'Keystation Pro 88' [type=kernel]
    0 'Keystation Pro 88 MIDI 1'
    1 'Keystation Pro 88 MIDI 2'
client 24: 'Virtual Raw MIDI 2-0' [type=kernel]
    0 'VirMIDI 2-0     '
	Connecting To: 130:0
	Connected From: 128:0
client 25: 'Virtual Raw MIDI 2-1' [type=kernel]
    0 'VirMIDI 2-1     '
client 26: 'Virtual Raw MIDI 2-2' [type=kernel]
    0 'VirMIDI 2-2     '
client 27: 'Virtual Raw MIDI 2-3' [type=kernel]
    0 'VirMIDI 2-3     '
client 128: 'FreeBoB Jack MIDI' [type=user]
    0 'dev1c_MidiPort_1'
	Connecting To: 24:0
    1 'dev1p_MidiPort_1'
client 129: 'FLUID Synth (fretless)' [type=user]
    0 'Synth input port (fretless:0)'
client 130: 'FLUID Synth (piano)' [type=user]
    0 'Synth input port (piano:0)'
	Connected From: 24:0
client 131: 'FLUID Synth (rhodes)' [type=user]
    0 'Synth input port (rhodes:0)'


Hmm....


$ aseqdump -p 24:0
Waiting for data. Press Ctrl+C to end.
Source_ Event_________________ Ch _Data__


... nothing happens!! 

Ctl-C

$ aplaymidi -p 24:0 some-file-definitely-with-midi-data.mid
&

$ aseqdump -p 24:0
Waiting for data. Press Ctrl+C to end.
Source_ Event_________________ Ch _Data__


.... still nothing!


What's going on?

This is with:
Linux mac 2.6.19.1-rt15-11-nocpufreq #1 SMP PREEMPT Mon Feb
5 14:42:46 PST 2007 i686 GNU/Linux

Advanced Linux Sound Architecture Driver Version 1.0.13 (Tue
Nov 28 14:07:24 2006 UTC).

- -ken
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFGF1ale8HF+6xeOIcRApxIAJ9EdkhxMGjpwMxjuRzMO8AmHwy0WQCg
jyZl
aJWv76kaxgeuqjYVIMZwv1o=
=Djpu
-----END PGP SIGNATURE-----

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-user mailing list
Alsa-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: snd-virmidi loads, but doesn't pass data
user name
2007-04-07 03:42:32
Hey,

> $  aconnect 128:0 24:0
> $ aconnect 24:0 130:0

Why can you not just use 'aconnect 128:0 130:0' ?

-- 
Chris Stranex
rm-rf

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-user mailing list
Alsa-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: snd-virmidi loads, but doesn't pass data
user name
2007-04-07 03:48:51
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, Apr 07, 2007 at 10:42:32AM +0200, Chris Stranex
wrote:
> Hey,
> 
> >$  aconnect 128:0 24:0
> >$ aconnect 24:0 130:0
> 
> Why can you not just use 'aconnect 128:0 130:0' ?
> 

In this example, I could. 

But I'm trying to get snd-virmidi working in order to
connect to ChucK (or PD), which do not support sitting
around waiting for an incoming MIDI connection. They insist
on establishing an incoming MIDI connection at startup time.
If you want to patch devices to them on the fly, you're
screwed.

I was hoping to use snd-virmidi for that, but, alas, no luck
so far.

- -ken
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFGF1rze8HF+6xeOIcRAtLYAKC1qLWoO0+pZO1l2DMl1hcI1vIR/QCg
vuHi
HLRPAvFQIuWmjMGqxRAfbA8=
=4E6C
-----END PGP SIGNATURE-----

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-user mailing list
Alsa-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: snd-virmidi loads, but doesn't pass data
country flaguser name
Germany
2007-04-10 06:39:50
At Sat, 7 Apr 2007 01:48:51 -0700,
Ken Restivo wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Sat, Apr 07, 2007 at 10:42:32AM +0200, Chris Stranex
wrote:
> > Hey,
> > 
> > >$  aconnect 128:0 24:0
> > >$ aconnect 24:0 130:0
> > 
> > Why can you not just use 'aconnect 128:0 130:0' ?
> > 
> 
> In this example, I could. 
> 
> But I'm trying to get snd-virmidi working in order to
connect to ChucK (or PD), which do not support sitting
around waiting for an incoming MIDI connection. They insist
on establishing an incoming MIDI connection at startup time.
If you want to patch devices to them on the fly, you're
screwed.
> 
> I was hoping to use snd-virmidi for that, but, alas, no
luck so far.

I guess you misunderstand the concept of virmidi?

snd-virmidi is a bridge between ALSA sequencer port and a
MIDI
byte-stream device (e.g. /dev/snd/midiC*D*).   It's no event
router.


Takashi

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-user mailing list
Alsa-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: snd-virmidi loads, but doesn't pass data
user name
2007-04-10 10:33:40
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Apr 10, 2007 at 01:39:50PM +0200, Takashi Iwai
wrote:
> At Sat, 7 Apr 2007 01:48:51 -0700,
> Ken Restivo wrote:
> > 
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > On Sat, Apr 07, 2007 at 10:42:32AM +0200, Chris
Stranex wrote:
> > > Hey,
> > > 
> > > >$  aconnect 128:0 24:0
> > > >$ aconnect 24:0 130:0
> > > 
> > > Why can you not just use 'aconnect 128:0
130:0' ?
> > > 
> > 
> > In this example, I could. 
> > 
> > But I'm trying to get snd-virmidi working in order
to connect to ChucK (or PD), which do not support sitting
around waiting for an incoming MIDI connection. They insist
on establishing an incoming MIDI connection at startup time.
If you want to patch devices to them on the fly, you're
screwed.
> > 
> > I was hoping to use snd-virmidi for that, but,
alas, no luck so far.
> 
> I guess you misunderstand the concept of virmidi?
> 
> snd-virmidi is a bridge between ALSA sequencer port and
a MIDI
> byte-stream device (e.g. /dev/snd/midiC*D*).   It's no
event router.
> 

Thanks! No, I did not understand the concept of
snd-virmidi.

The MIDI Thru device worked perfectly, as was suggested.

Thanks again!

- -ken
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFGG65Ue8HF+6xeOIcRAoGIAKDQnQQn19ziPFu5cJnMMylQq2lj1QCe
MPSl
OIVGR120+RJm8396DRc72gk=
=EXjP
-----END PGP SIGNATURE-----

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-user mailing list
Alsa-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: snd-virmidi loads, but doesn't pass data
country flaguser name
Germany
2007-04-10 11:02:18
At Tue, 10 Apr 2007 08:33:40 -0700,
Ken Restivo wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Tue, Apr 10, 2007 at 01:39:50PM +0200, Takashi Iwai
wrote:
> > At Sat, 7 Apr 2007 01:48:51 -0700,
> > Ken Restivo wrote:
> > > 
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > Hash: SHA1
> > > 
> > > On Sat, Apr 07, 2007 at 10:42:32AM +0200,
Chris Stranex wrote:
> > > > Hey,
> > > > 
> > > > >$  aconnect 128:0 24:0
> > > > >$ aconnect 24:0 130:0
> > > > 
> > > > Why can you not just use 'aconnect 128:0
130:0' ?
> > > > 
> > > 
> > > In this example, I could. 
> > > 
> > > But I'm trying to get snd-virmidi working in
order to connect to ChucK (or PD), which do not support
sitting around waiting for an incoming MIDI connection. They
insist on establishing an incoming MIDI connection at
startup time. If you want to patch devices to them on the
fly, you're screwed.
> > > 
> > > I was hoping to use snd-virmidi for that,
but, alas, no luck so far.
> > 
> > I guess you misunderstand the concept of virmidi?
> > 
> > snd-virmidi is a bridge between ALSA sequencer
port and a MIDI
> > byte-stream device (e.g. /dev/snd/midiC*D*).  
It's no event router.
> > 
> 
> Thanks! No, I did not understand the concept of
snd-virmidi.
> 
> The MIDI Thru device worked perfectly, as was
suggested.

As mentioned, it's no event router.  Suppose you connect App
A ->
virmidi and virmidi -> App B.  Then the event flow is:
	App A -> VirMIDI -> /dev/snd/midiC*D*
_and_
	/dev/snd/miciC*D* -> VirMIDI -> App B

That is, there is no connection between Apps A and B.

If you need a static event router, you can use snd-seq-dummy
module.


Takashi

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-user mailing list
Alsa-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )